大量注文のお知らせ表示後、アニメーションが停止するようにした
This commit is contained in:
parent
cd3c636b8a
commit
cbcb4ac030
|
|
@ -18,6 +18,7 @@ AnimatorStateMachine:
|
|||
m_ChildStateMachines: []
|
||||
m_AnyStateTransitions:
|
||||
- {fileID: -2584151045959372554}
|
||||
- {fileID: 507310708281167923}
|
||||
m_EntryTransitions: []
|
||||
m_StateMachineTransitions: {}
|
||||
m_StateMachineBehaviours: []
|
||||
|
|
@ -66,6 +67,12 @@ AnimatorController:
|
|||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
- m_Name: Wait
|
||||
m_Type: 9
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 5
|
||||
m_Name: Base Layer
|
||||
|
|
@ -79,6 +86,31 @@ AnimatorController:
|
|||
m_IKPass: 0
|
||||
m_SyncedLayerAffectsTiming: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
--- !u!1101 &507310708281167923
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: Wait
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 8184852863273017017}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.75
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1102 &2349655529364603932
|
||||
AnimatorState:
|
||||
serializedVersion: 5
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ public class BulkOrderIndicatorView : MonoBehaviour
|
|||
[SerializeField] private GameObject balloonObject;
|
||||
|
||||
private static readonly int Ring = Animator.StringToHash("Ring");
|
||||
private static readonly int Wait = Animator.StringToHash("Wait");
|
||||
private static readonly int Speech = Animator.StringToHash("Speech");
|
||||
|
||||
public IObservable<Unit> TappedPhone => button.OnClickAsObservable().TakeUntilDestroy(this);
|
||||
|
|
@ -23,6 +24,10 @@ public class BulkOrderIndicatorView : MonoBehaviour
|
|||
phoneAnimator.SetTrigger(Ring);
|
||||
indicatorAnimator.SetTrigger(Speech);
|
||||
}
|
||||
else
|
||||
{
|
||||
phoneAnimator.SetTrigger(Wait);
|
||||
}
|
||||
button.interactable = receive || !achieved;
|
||||
titleObject.SetActive(!receive && !achieved);
|
||||
balloonObject.SetActive(receive);
|
||||
|
|
|
|||
Loading…
Reference in New Issue