Exemplo n.º 1
0
 void Awake()
 {
     animationController = GetComponentInChildren <MovementAnimationController>();
     target = FindObjectOfType <PlayerScript>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     animationController = GetComponentInChildren <MovementAnimationController>();
     playerCollider      = GetComponent <CapsuleCollider2D>();
     rb = GetComponent <Rigidbody2D>();
 }