Esempio n. 1
0
 public void MoveToExp(int exp)
 {
     if (vo.exp >= exp)
     {
         vo.exp    = exp;
         bar.max   = vo.maxExp;
         bar.value = vo.exp;
         return;
     }
     vo.exp   += cha;
     bar.max   = vo.maxExp;
     bar.value = vo.exp;
     bar.TweenScaleX(1.2f, 0.05f).OnComplete(() =>
     {
         bar.TweenScaleX(1f, 0.05f).OnComplete(() =>
         {
             MoveToExp(exp);
         });
     });
 }