void Start() { currentTime = Random.Range(1, 2); theGet = FindObjectOfType <GetCompanyManager>(); thePasser = FindObjectOfType <PasserByManager>(); theBuild = FindObjectOfType <LandmarksHandler>(); theChat = FindObjectOfType <CitizenChatManager>(); theType = FindObjectOfType <PasserType>(); }
void Start() { /* 첫 1-2초 사이에 등장 */ currentTime = Random.Range(1, 2); theGet = FindObjectOfType <GetCompanyManager>(); theChat = FindObjectOfType <CitizenChatManager>(); theType = FindObjectOfType <PasserType>(); theCountry = FindObjectOfType <ChangeCountryName>(); theHandler = FindObjectOfType <LandmarksHandler>(); }
void Start() { theStat = FindObjectOfType <PlayerStatManager>(); theNotice = FindObjectOfType <NoticeManager>(); theGet = FindObjectOfType <GetCompanyManager>(); theDate = FindObjectOfType <DateManager>(); countryAttractivePoint = new int[5]; for (int i = 0; i < 5; i++) { countryAttractivePoint[i] = 0; } allCountryAttractivePoint = 0; CalcAllBuildingsAttractivePoint(); CalcCountryAttractivePoint(); for (int i = 0; i < Buildings.Length; i++) { if (i >= 0 && i <= 3) { Buildings[i].country = "fra"; } else if (i >= 4 && i <= 7) { Buildings[i].country = "ger"; } else if (i >= 8 && i <= 11) { Buildings[i].country = "aus"; } else if (i >= 12 && i <= 15) { Buildings[i].country = "kor"; } else if (i >= 16 && i <= 19) { Buildings[i].country = "usa"; } } }