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