/* ** Called When Player Collides With A Barrier. */ private void Barrier(int value) { switch (value) { case 0: { Course = 0; Motion = true; break; } case 1: { Course = 1; Motion = false; AudioLocator.GetAudio().Play(0); break; } case 2: { Course = 2; Motion = false; AudioLocator.GetAudio().Play(0); break; } } }
/* ** Concludes The Game On Event Call. */ private void Conclude() { Time.timeScale = 0f; AudioLocator.GetAudio().Play(0); AudioLocator.GetAudio().Play(1); Conclusion.SetActive(true); }