public void Clear() { Nickname.Clear(); Level.text = ""; WinRate.text = ""; Money.Clear(); // Description.text = ""; }
/// <summary> /// 清空座位。 /// </summary> public void Clear() { Data = null; ShowFuncGroup(false); if (SelfIndicator && SelfIndicator.gameObject.activeSelf) { SelfIndicator.gameObject.SetActive(false); } if (ReadyIndicator && ReadyIndicator.gameObject.activeSelf) { ReadyIndicator.gameObject.SetActive(false); } if (Level) { Level.text = null; } if (LevelTitle) { LevelTitle.text = null; } if (WinRate) { WinRate.text = null; } if (Money) { Money.Clear(); } if (Nickname) { Nickname.Clear(); } if (Player) { Player.Clear(); } }
public void Reset() { RankTxt.text = ""; AwardHongbaoTxt.text = ""; RaceNameTxt.text = ""; HelpDescriptionTxt.text = ""; ShareRaceNameTxt.text = ""; ShareRankTxt.text = ""; ShareAwardHongbaoTxt.text = ""; ShareNickname.text = ""; HeadIcon.Reset(); AwardCurrencyValue.Clear(); }
private void EnablePrice(bool enable, Currency currency = null) { if (!Price) { return; } if (Price.gameObject.activeSelf != enable) { Price.gameObject.SetActive(enable); } if (enable) { if (currency != null) { Price.SetCurrency(currency.count, currency.type); } else { Price.Clear(); } } }