Beispiel #1
0
 private void LoadComponents()
 {
     _cachedTransform   = base.transform;
     _cachedGameObject  = base.gameObject;
     _body              = GetComponent <LSBody> ();
     _animator          = GetComponent <LSAnimator> ();
     _attachedAbilities = GetComponents <Ability> ();
 }
 void Awake()
 {
     animator = GetComponent<LSAnimator> ();
     animator.OnStatePlay += HandleOnStatePlay;
     animator.OnImpulsePlay += HandleOnImpulsePlay;
 }
 void Awake()
 {
     animator                = GetComponent <LSAnimator> ();
     animator.OnStatePlay   += HandleOnStatePlay;
     animator.OnImpulsePlay += HandleOnImpulsePlay;
 }