Exemple #1
0
 void AddDamageToRight()
 {
     rightBar.TakeLife(ball.speed * 10f);
     if (rightBar.Life() <= 0)
     {
         ko       = true;
         win.text = "PLAYER WIN";
     }
 }
Exemple #2
0
 void AddDamageToLeft()
 {
     leftBar.TakeLife(ball.speed * 10f);
     if (leftBar.Life() <= 0)
     {
         ko       = true;
         win.text = "MACHINE WIN";
     }
 }