void Start() { panelcon = GameObject.FindGameObjectWithTag("PCon"); currectcolor = panelcon.GetComponent <PanelController2> (); currectcolor.InitCurrectFlag(); currectcolor.SetCurrectFlag(); }
void Start() { panelcon = GameObject.FindGameObjectWithTag("PCon"); countcon = GameObject.FindGameObjectWithTag("Count"); FlagChange = panelcon.GetComponent <PanelController2> (); FlagChange.InitFlag(); FlagChange.SetPanelFlag(); decrese = countcon.GetComponent <Count2> (); }