Пример #1
0
        void SetLevelLabel()
        {
            int level = expTable.GetLevel(User.Instance.Exp);

            levelLabel.text = "Level. " + level.ToString();
            float rate = expTable.GetLevelRate(level, User.Instance.Exp);

            gaugeUI.SetGaugeAmount(rate);
        }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     if (!timer.isStarted)
     {
         return;
     }
     scoringTime  += Time.deltaTime;
     relativeSpeed = spinner.relativeSpeed;
     if (scoringTime > 0.1f)
     {
         temp               = (relativeSpeed * fixedSpeed);
         score             += temp;
         label.text         = ((int)score).ToString();
         User.Instance.Exp += (int)(temp * 0.35f);
         level              = expTable.GetLevel(User.Instance.Exp);
         levelLabel.text    = "Lv." + level.ToString();
         float rate = expTable.GetLevelRate(level, User.Instance.Exp);
         gaugeUI.SetGaugeAmount(rate);
     }
 }