コード例 #1
0
 void Awake()
 {
     animationController = GetComponentInChildren <MovementAnimationController>();
     target = FindObjectOfType <PlayerScript>();
 }
コード例 #2
0
ファイル: PlayerScript.cs プロジェクト: renjadizz/unityIso
 void Awake()
 {
     animationController = GetComponentInChildren <MovementAnimationController>();
     playerCollider      = GetComponent <CapsuleCollider2D>();
     rb = GetComponent <Rigidbody2D>();
 }