private void Jump(GameObject actor) { if (_player == null) { _player = actor.GetComponent <PlayerItemsController>(); } }
private void Dash(GameObject actor) { if (_player == null) { _player = actor.GetComponent <PlayerItemsController>(); } _player.CheckDash(_direction); }
private void Move(GameObject actor) { if (_player == null) { _player = actor.GetComponent <PlayerItemsController>(); } var h = Input.GetAxis("Horizontal"); _player.FacingDirection(h); }
private void Awake() { Shared = this; }