Example #1
0
 private void Awake()
 {
     if (m_animHandler == null)
     {
         m_animHandler = this.GetComponent <AnimHandler>(true);
     }
 }
Example #2
0
 private void Awake()
 {
     m_MovinEntityView                    = this.GetComponent <MonsterEntityView>(true);
     m_AnimationHandler                   = this.GetComponent <AnimHandler>(true);
     m_AnimationEventHandler              = this.GetComponent <AnimEventHandler>(true);
     m_AnimationHandler.PlayingAnimation += AnimationHandlerOnPlay;
 }