예제 #1
0
 void Bound()
 {
     if (transform.position.x > 7.69)
     {
         sController.AddScoreToPlayer();
         scores = 1;
         StartCoroutine(StartOverAgain());
     }
     else if (transform.position.x < -7.69)
     {
         sController.AddScoreToEnemy();
         scores = 0;
         StartCoroutine(StartOverAgain());
     }
 }