public void Process(ExplorationUI entity, FytInput input) { if (input.Tapping()) { Node node = entity.GetMovementNode(input); if (node != null) { entity.SetSelection(node); entity.StateMachine.ChangeState(ExplorationUIStates.TRACE_PATH); } } }
public void Process(ExplorationUI entity, FytInput input) { if (input.Tapping()) { Node node = entity.GetMovementNode(input); if (node != null) { if (entity.IsCurrentRetraceNode(node)) { entity.StateMachine.ChangeState(ExplorationUIStates.FIRE_MOVE_ACTION); } else { entity.SetSelection(node); entity.StateMachine.ChangeState(ExplorationUIStates.TRACE_PATH); } } } }