Ejemplo n.º 1
0
 public void SUPER()
 {
     if (superFill.fillAmount == 1)
     {
         isSuper         = true;
         super           = 0;
         superText.color = new Color(0.1568628f, 0.1568628f, 0.1568628f);
         outline.Play("New State");
         superFill.fillAmount = 0;
         // do it
         leftPlayer.CancelInvoke();
         leftPlayer.InvokeRepeating("SUPER", 0, .10f);
         rightPlayer.CancelInvoke();
         rightPlayer.InvokeRepeating("SUPER", 0, .10f);
         StartCoroutine(Super());
     }
 }