Ejemplo n.º 1
0
 public void Clear()
 {
     Nickname.Clear();
     Level.text   = "";
     WinRate.text = "";
     Money.Clear();
     // Description.text = "";
 }
Ejemplo n.º 2
0
        /// <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();
            }
        }
Ejemplo n.º 3
0
 public void Reset()
 {
     RankTxt.text              = "";
     AwardHongbaoTxt.text      = "";
     RaceNameTxt.text          = "";
     HelpDescriptionTxt.text   = "";
     ShareRaceNameTxt.text     = "";
     ShareRankTxt.text         = "";
     ShareAwardHongbaoTxt.text = "";
     ShareNickname.text        = "";
     HeadIcon.Reset();
     AwardCurrencyValue.Clear();
 }
Ejemplo n.º 4
0
        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();
                }
            }
        }