void Update() { text.text = CommuneToControllerBridge.GetCurrentCommuneNPCs() + "/" + CommuneToControllerBridge.Instance.CurrentMaxPeople; }
public void PlayerEnteredCity() { // Reset/respawn crowds & player pos? GameObject crowdManager = transform.Find("CrowdManager").gameObject; if (crowdManager != null) { crowdManager.GetComponent <CrowdManager>().RefreshCrowd(); } //Set commune variables GameObject collectionHandler = transform.Find("CollectionScript").gameObject; if (collectionHandler != null) { collectionHandler.GetComponent <CityCollectionHandler>().ResetNumbers(); collectionHandler.GetComponent <CityCollectionHandler>().SetCommuneVariables(CommuneToControllerBridge.GetCurrentCommuneNPCs(), CommuneToControllerBridge.Instance.CurrentMaxPeople); } }