void Update()
 {
     text.text = CommuneToControllerBridge.GetCurrentCommuneNPCs() + "/" + CommuneToControllerBridge.Instance.CurrentMaxPeople;
 }
예제 #2
0
    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);
        }
    }