Пример #1
0
 public void SetComboZoomAnimation(int currentCombo, float delay = 0.025f)
 {
     if (comboTxt)
     {
         if (currentCombo > 0)
         {
             comboTxt.gameObject.SetActive(true);
             comboTxt.text = currentCombo.ToString();
             UIAnimation.DoMoveZ(comboTxtTransform, -150, 0, 0.25f, delay, true);
         }
         else
         {
             comboTxt.gameObject.SetActive(false);
             comboTxt.text = "-";
         }
     }
 }