void Awake() { if (instance == null) { instance = this; } else { Debug.LogWarning("There should be only one GameManager"); return; } turnCounter = 1; turnCounterText.text = "1"; resourceAmounts = new Dictionary <ResourceType, int>(); foreach (ResourceType resourceType in ResourceLocator.GetAllResourceTypes()) { SetResourceAmount(resourceType, 0); } realPopulationCounter = startingPopulation; SetResourceAmount(ResourceType.CurrentPopulation, startingPopulation); SetResourceAmount(ResourceType.TotalPopulation, startingPopulation); SetResourceAmount(ResourceType.FoodToBeConsumed, -startingPopulation); deck = GameObject.FindObjectOfType <Deck>(); cardsToUnlock = Resources.LoadAll <CardData>("Cards").Where(cardData => cardData.UnlockRequirement > 0 && cardData.Level == 1).ToList(); deck.Setup(); }