private void OnMovementInput(object sender, MovementInputEventArgs args) { if (this.Player == null) { return; } this.Player.transform.position += this.Player.transform.TransformDirection(args.Direction) * Time.deltaTime * this.LevelSettings.PlayerSpeed; }
public void OnMovementInput(object sender, MovementInputEventArgs args) { var handler = this.MovementInput; if (handler != null) { handler(sender, args); } }