Esempio n. 1
0
 void Awake()
 {
     inputState = GetComponent<InputState>();
     anim = GetComponentInChildren<SkeletonAnimation>();
     collisionState = GetComponent<CollisionState>();
     attackBehavior = GetComponent<Attack>();
     rb2d = GetComponent<Rigidbody2D>();
     crouchBehavior = GetComponent<CrouchBehavior>();
 }
Esempio n. 2
0
 protected virtual void Awake()
 {
     _inputState = GetComponent<InputState>();
     _rb2d = GetComponent<Rigidbody2D>();
     _collisionState = GetComponent<CollisionState>();
 }
Esempio n. 3
0
 void Awake()
 {
     _inputState = GetComponent<InputState>();
 }