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