private void OnActionCancelled(StateActionCancelledEventArgs obj) { if (_moveEventArgs == null || _moveEventArgs.Mech == null) { return; } _moveEventArgs.Mech.transform.SetGridPosition(_moveEventArgs.StartPosition); _moveEventArgs = null; }
private void OnActionCancelled(StateActionCancelledEventArgs obj) => Action = UnitAction.Unassigned;
public void SetActionCancelled(StateActionCancelledEventArgs args) => ActionCancelled?.Invoke(args);