Exemplo n.º 1
0
 private void Jump(GameObject actor)
 {
     if (_player == null)
     {
         _player = actor.GetComponent <PlayerItemsController>();
     }
 }
Exemplo n.º 2
0
 private void Dash(GameObject actor)
 {
     if (_player == null)
     {
         _player = actor.GetComponent <PlayerItemsController>();
     }
     _player.CheckDash(_direction);
 }
Exemplo n.º 3
0
    private void Move(GameObject actor)
    {
        if (_player == null)
        {
            _player = actor.GetComponent <PlayerItemsController>();
        }
        var h = Input.GetAxis("Horizontal");

        _player.FacingDirection(h);
    }
Exemplo n.º 4
0
 private void Awake()
 {
     Shared = this;
 }