void OnEnable() { Tech = FindObjectOfType <Scr_Tech>(); Time = FindObjectOfType <Scr_TimeControl>(); Events = FindObjectOfType <Scr_Event>(); Statistic = FindObjectOfType <Scr_Statistic>(); UpGradePage.SetActive(false); PressPage1.SetActive(true); PressPage2.SetActive(false); PressPage3.SetActive(false); }
void Start() { Time = FindObjectOfType <Scr_TimeControl>(); Provinces = FindObjectOfType <Scr_Color>(); Events = FindObjectOfType <Scr_Event>(); Num = FindObjectOfType <Scr_Num>(); Tech = FindObjectOfType <Scr_Tech>(); News = FindObjectOfType <Scr_News>(); Statistic = FindObjectOfType <Scr_Statistic>(); BlackG.SetActive(false); }