TerminarJogo() public static method

public static TerminarJogo ( ) : void
return void
Example #1
0
 void OnCollisionEnter2D()
 {
     vidas--;
     print("vidas: " + vidas);
     morri = true;
     if (vidas == 0)
     {
         Arbitro.TerminarJogo();
     }
     else
     {
         Arbitro.RecarregarFase();
     }
 }
Example #2
0
 void LateUpdate()
 {
     if (destruir)
     {
         Destroy(this.gameObject);
         vidas--;
         if (vidas == 0)
         {
             Arbitro.TerminarJogo();
         }
         else
         {
             Arbitro.RenascerNave();
         }
     }
 }