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