Пример #1
0
 void Awake()
 {
     city            = FindObjectOfType <City> ();
     leftPanel       = FindObjectOfType <LeftPanel> ();
     breedingManager = FindObjectOfType <BreedingManager> ();
     crimeManager    = FindObjectOfType <CrimeManager> ();
 }
Пример #2
0
 void Awake()
 {
     leftPanel        = FindObjectOfType <LeftPanel> ();
     unitManager      = FindObjectOfType <UnitManager> ();
     breedingManager  = FindObjectOfType <BreedingManager> ();
     mouseController  = FindObjectOfType <MouseController> ();
     sampleToIconMap  = new Dictionary <int, GeneticIcon> ();
     displayedSamples = new List <GeneticSample> ();
 }
Пример #3
0
    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);
        }
    }
Пример #4
0
 void Awake()
 {
     leftPanel       = FindObjectOfType <LeftPanel> ();
     gameManager     = FindObjectOfType <GameManager> ();
     breedingManager = FindObjectOfType <BreedingManager> ();
 }