Esempio n. 1
0
File: Active.cs Progetto: odmiex/NKM
 public void Clean()
 {
     RemoveMoveCells();
     if (AirSelection.IsEnabled)
     {
         AirSelection.Disable();
     }
     Ability  = null;
     Action   = Action.None;
     HexCells = null;
     Game.HexMapDrawer.RemoveAllHighlights();
 }
Esempio n. 2
0
 public void Clean()
 {
     RemoveMoveCells();
     if (AirSelection.IsEnabled)
     {
         AirSelection.Disable();
     }
     AbilityToUse = null;
     Action       = Action.None;
     HexCells     = null;
     Game.HexMapDrawer.RemoveHighlights();
     Game.HexMapDrawer.RemoveHighlightsOfColor(Highlights.BlueTransparent);
 }
Esempio n. 3
0
File: Active.cs Progetto: odmiex/NKM
 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();
     }
 }
Esempio n. 4
0
    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();
        }
    }