Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     woodQuantity.text       = ressourceManager.GetWood().ToString();
     animalQuantity.text     = ressourceManager.GetAnimal().ToString();
     vegetalQuantity.text    = ressourceManager.GetVegetal().ToString();
     populationQuantity.text = GameManager._instance.currentPopulation.ToString() + "/" + GameManager._instance.maxPopulation.ToString();
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     woodQuantity.text       = ressourceManager.GetWood().ToString() + "/" + ressourceManager.GetMaxWood().ToString();
     animalQuantity.text     = ressourceManager.GetAnimal().ToString() + "/" + ressourceManager.GetMaxAnimal().ToString();
     vegetalQuantity.text    = ressourceManager.GetVegetal().ToString() + "/" + ressourceManager.GetMaxVegetal().ToString();
     populationQuantity.text = GameManager._instance.currentPopulation.ToString() + "/" + GameManager._instance.maxPopulation.ToString();
     score.text = GameManager._instance.GetDropPoint().GetComponent <DropPoint>().score.ToString();
 }
Ejemplo n.º 3
0
    public bool[] GetScarceRessource()
    {
        bool[] toReturn = new bool[3];

        if (AIDropPoint.GetWood() <= scarceRessourceThreshold)
        {
            toReturn[0] = true;
        }
        if (AIDropPoint.GetAnimal() <= scarceRessourceThreshold)
        {
            toReturn[1] = true;
        }
        if (AIDropPoint.GetAnimal() <= scarceRessourceThreshold)
        {
            toReturn[2] = true;
        }

        return(toReturn);
    }