Ejemplo n.º 1
0
 private void LoadComponents()
 {
     _cachedTransform   = base.transform;
     _cachedGameObject  = base.gameObject;
     _unityBody         = GetComponent <UnityLSBody>();
     _animator          = GetComponent <LSAnimatorBase>();
     _attachedAbilities = GetComponents <Ability>();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     animator                = GetComponent <LSAnimatorBase> ();
     animator.OnStatePlay   += HandleOnStatePlay;
     animator.OnImpulsePlay += HandleOnImpulsePlay;
 }