예제 #1
0
    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);
예제 #4
0
 private void OnActionCommitted(StateActionCommittedEventArgs eventArgs)
 {
     _moveEventArgs = null;
 }
예제 #5
0
 private void OnActionSetToMove(StateActionSetToMoveEventArgs eventArgs)
 {
     _moveEventArgs = eventArgs;
 }