public void QueueTrainUnitCommand() { Debug.Log("clicky"); GameBehaviourCommand command = ArmyCommandFactory.CreateBuyUnitCommand(type, PlayerType.PLAYER); QueueUpCommand(command); }
// ------------------------------------------------------------------------------------------------------------------------------------------------------- // Execution Phase // Gets command for given Unit type public GameBehaviourCommand GetUnitToAddToQueue(UnitType type) { UnitPurchaseModel model = UnitPurchaseModelFactory.Create(type); // update internal state startingUnits.Add(type); // add command to list return(ArmyCommandFactory.CreateBuyUnitCommand(type, PlayerType.AI)); }