private void OnActionCancelled(StateActionCancelledEventArgs obj) { if (_moveEventArgs == null || _moveEventArgs.Mech == null) { return; } _moveEventArgs.Mech.transform.SetGridPosition(_moveEventArgs.StartPosition); _moveEventArgs = null; }
private void OnActionSetToMove(StateActionSetToMoveEventArgs obj) => Action = UnitAction.Move;
public void SetActionToMove(StateActionSetToMoveEventArgs args) => ActionSetToMove?.Invoke(args);
private void OnActionCommitted(StateActionCommittedEventArgs eventArgs) { _moveEventArgs = null; }
private void OnActionSetToMove(StateActionSetToMoveEventArgs eventArgs) { _moveEventArgs = eventArgs; }