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