Exemple #1
0
 void ICommandPanel.RemoveButtonCommands(IButtonCommands buttonCommands)
 {
     if (_ButtonCommandsList.Contains(buttonCommands))
     {
         _ButtonCommandsList.Remove(buttonCommands);
         UpdateCommandPanelButtons();
     }
 }
Exemple #2
0
    private void RemoveGameObjectButtonCommands(GameObject unit)
    {
        IButtonCommands buttonCommands = unit.GetComponents <IButtonCommands>().ThrowIfMoreThanOne();

        if (buttonCommands != null)
        {
            _CommandPanel.RemoveButtonCommands(buttonCommands);
        }
    }
Exemple #3
0
    private void AddGameObjectButtonCommands(GameObject unit)
    {
        IButtonCommands buttonCommands = unit.GetComponents <IButtonCommands>().ThrowIfMoreThanOne();

        if (buttonCommands != null)
        {
            _CommandPanel.ShowPanel();
            _CommandPanel.AddButtonCommands(buttonCommands);
        }
    }
Exemple #4
0
 void ICommandPanel.AddButtonCommands(IButtonCommands buttonCommands)
 {
     _ButtonCommandsList.Add(buttonCommands);
     UpdateCommandPanelButtons();
 }