Пример #1
0
 void Awake()
 {
     if (myAnimator == null)
     {
         Debug.LogError(gameObject + " animator is null. Please set the reference.");
     }
     weaponManager  = GetComponent <MegamanWeaponManager> ();
     hitpoints      = GetComponent <Hitpoints> ();
     _myRigidbody2D = GetComponent <Rigidbody2D> ();
     _myCollider2D  = GetComponent <Collider2D> ();
     myJump2D       = GetComponent <Jump2D> ();
     myWallJump2D   = GetComponent <WallJump2D> ();
     playerInput    = GetComponent <MegamanInput> ();
 }
Пример #2
0
 void Awake()
 {
     if(myAnimator == null)
     {
         Debug.LogError(gameObject + " animator is null. Please set the reference.");
     }
     weaponManager = GetComponent<MegamanWeaponManager> ();
     hitpoints = GetComponent<Hitpoints> ();
     _myRigidbody2D = GetComponent<Rigidbody2D> ();
     _myCollider2D = GetComponent<Collider2D> ();
     myJump2D = GetComponent<Jump2D> ();
     myWallJump2D = GetComponent<WallJump2D> ();
     playerInput = GetComponent<MegamanInput> ();
 }