Inheritance: MonoBehaviour
Exemplo n.º 1
0
 void Awake()
 {
     player     = GameObject.FindWithTag("Player");
     fistAttack = player.GetComponent <FistAttack>();
 }
Exemplo n.º 2
0
 public void Awake()
 {
     rb            = GetComponent <Rigidbody2D>();
     fistAttack    = GetComponent <FistAttack>();
     groundChecker = GetComponentInChildren <PlayerGroundCheck>();
 }