diff --git a/Assets/animation/anim_clips_ui/tchat_complet.controller b/Assets/animation/anim_clips_ui/tchat_complet.controller index 7f76c00..a9d253b 100644 --- a/Assets/animation/anim_clips_ui/tchat_complet.controller +++ b/Assets/animation/anim_clips_ui/tchat_complet.controller @@ -38,7 +38,7 @@ Transition: m_TransitionDuration: .576923072 m_TransitionOffset: 0 m_Conditions: - - m_ConditionMode: 2 + - m_ConditionMode: 1 m_ConditionEvent: etat_tchat m_EventTreshold: 0 m_ExitTime: .423076928 @@ -58,7 +58,7 @@ Transition: m_TransitionDuration: .576923072 m_TransitionOffset: 0 m_Conditions: - - m_ConditionMode: 1 + - m_ConditionMode: 2 m_ConditionEvent: etat_tchat m_EventTreshold: 0 m_ExitTime: .423076928 @@ -110,14 +110,14 @@ StateMachine: m_ChildStateMachine: [] m_ChildStateMachinePosition: [] m_OrderedTransitions: - data: - first: {fileID: 110299434} - second: - - {fileID: 110133210} data: first: {fileID: 110200000} second: - {fileID: 110100000} + data: + first: {fileID: 110299434} + second: + - {fileID: 110133210} m_MotionSetCount: 1 m_AnyStatePosition: {x: -168, y: -12, z: 0} m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} diff --git a/Assets/scripts/tchat_anim.cs b/Assets/scripts/tchat_anim.cs index d22b789..1c1a5f5 100644 --- a/Assets/scripts/tchat_anim.cs +++ b/Assets/scripts/tchat_anim.cs @@ -7,9 +7,13 @@ public class tchat_anim : MonoBehaviour { public Animator anim; // Use this for initialization void Start () { + } + + void Awake(){ anim = gameObject.GetComponent (); anim.SetBool ("etat_tchat",false); + } // Update is called once per frame