public void LineupClicked() { DisableTF(); transform.FindChild("TF_Lineup").gameObject.SetActive(true); DisableSub2(); mBtnLineup.transform.FindChild("Label").GetComponent <UILabel>().color = Color.white; mToggles.SetActive(true); if (mSub2State == Sub2State.LineUp) { return; } mSub2State = Sub2State.LineUp; }
public void HistoryClicked() { DisableTF(); transform.FindChild("TF_Statistics").gameObject.SetActive(true); DisableSub2(); mBtnHistory.transform.FindChild("Label").GetComponent <UILabel>().color = Color.white; if (mSub2State == Sub2State.History) { return; } mSub2State = Sub2State.History; transform.FindChild("TF_Statistics").GetComponent <StatisControl>().Init(); }
void Awake() { mTopState = TopState.Empty; mSub1State = Sub1State.Empty; mSub2State = Sub2State.Empty; }