// 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(); }
// 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(); }
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); }