public void InfoTeamClicked() { if (mSub1State == Sub1State.InfoTeam) { return; } DisableSub1(); mSub1State = Sub1State.InfoTeam; mBtnInfoTeam.transform.FindChild("Label").GetComponent <UILabel>().color = Color.white; mToggles.SetActive(true); }
public void InfoMatchClicked() { DisableTF(); transform.FindChild("TF_Highlight").gameObject.SetActive(true); DisableSub1(); mBtnInfoMatch.transform.FindChild("Label").GetComponent <UILabel>().color = Color.white; mToggles.SetActive(true); if (mSub1State == Sub1State.InfoMatch) { return; } mSub1State = Sub1State.InfoMatch; }
public void RankTeamClicked() { DisableTF(); transform.FindChild("TF_Ranking").gameObject.SetActive(true); DisableSub1(); mBtnRankTeam.transform.FindChild("Label").GetComponent <UILabel>().color = Color.white; if (mSub1State == Sub1State.RankTeam) { return; } mSub1State = Sub1State.RankTeam; transform.FindChild("TF_Ranking").GetComponent <Rankcontrol>().Init(); }
void Awake() { mTopState = TopState.Empty; mSub1State = Sub1State.Empty; mSub2State = Sub2State.Empty; }