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