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