void Awake() { city = FindObjectOfType <City> (); leftPanel = FindObjectOfType <LeftPanel> (); breedingManager = FindObjectOfType <BreedingManager> (); crimeManager = FindObjectOfType <CrimeManager> (); }
void Awake() { leftPanel = FindObjectOfType <LeftPanel> (); unitManager = FindObjectOfType <UnitManager> (); breedingManager = FindObjectOfType <BreedingManager> (); mouseController = FindObjectOfType <MouseController> (); sampleToIconMap = new Dictionary <int, GeneticIcon> (); displayedSamples = new List <GeneticSample> (); }
public void Initialise() { unitToGOMap = new Dictionary <Unit, GameObject> (); for (int i = 0; i < 3; i++) { AddHero(breedingManager.GetNewHero(), city.GetRandomTile()); } for (int i = 0; i < 2; i++) { AddVillain(breedingManager.GetNewVillain(), city.GetRandomTile()); } // FOR TESTING foreach (Unit unit in units) { BreedingManager breedingManager = FindObjectOfType <BreedingManager> (); breedingManager.AddGeneticMaterial(unit); } }
void Awake() { leftPanel = FindObjectOfType <LeftPanel> (); gameManager = FindObjectOfType <GameManager> (); breedingManager = FindObjectOfType <BreedingManager> (); }