// ------------------------------------ // TRAINING QUEUE AND ACTIONS // ------------------------------------ public void train(StrategyObject t) { Debug.Log("Adding " + t + " to " + trainingQueue); if (trainingQueue.Count == 0) { startDevelopment(t); } trainingQueue.Add(t); t.StartDevelopment(); Gameplay.getPlayer(tag).consumeResources(t.cost); }