private void AddInputCommand(Command command) { if (!command) { Debug.LogError("Cannot add undefined command"); return; } if (activeCommands.Count < actor.GetMaxCommands()) { Debug.Log("Adding Command: " + command.GetCommandName() + " with a cost of: " + command.GetCommandCost()); activeCommands.Add(command); UIBattleManager.AddInputCommandUI(command, activeCommands.Count); } else { Debug.LogWarning("Max number of commands reached."); } }