예제 #1
0
 private void Start()
 {
     _player = gameObject.GetComponent <ICharacterMotion>();
 }
예제 #2
0
 private void Awake()
 {
     _playerCharacter = GetComponentInChildren <ICharacter>();
     _playerMotion    = GetComponentInChildren <ICharacterMotion>();
     rbody            = GetComponentInChildren <Rigidbody2D>();
 }