public Active(Game game) { Game = game; Phase = new Phase(game); Turn = new Turn(game); AirSelection = new AirSelection(game); IsDebug = true; }
public void Clean() { RemoveMoveCells(); if (AirSelection.IsEnabled) { AirSelection.Disable(); } Ability = null; Action = Action.None; HexCells = null; Game.HexMapDrawer.RemoveAllHighlights(); }
public void Clean() { RemoveMoveCells(); if (AirSelection.IsEnabled) { AirSelection.Disable(); } AbilityToUse = null; Action = Action.None; HexCells = null; Game.HexMapDrawer.RemoveHighlights(); Game.HexMapDrawer.RemoveHighlightsOfColor(Highlights.BlueTransparent); }
public void Reset() { Ability?.OnUseFinish(); if (IsActiveUse || Turn.IsDone) { CharacterOnMap?.Deselect(); } Ability = null; HexCells = null; MyGameObject = null; Action = Action.None; if (AirSelection.IsEnabled) { AirSelection.Disable(); } }
public void Reset() { // ((Ability)AbilityToUse)?.Finish(); if (IsActiveUse || Turn.IsDone) { CharacterOnMap?.Deselect(); } AbilityToUse = null; HexCells = null; NkmObject = null; SelectedCell = null; Action = Action.None; if (AirSelection.IsEnabled) { AirSelection.Disable(); } }
public Active() { Phase = new Phase(); Turn = new Turn(); AirSelection = new AirSelection(); }