Example #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player" && !cab.cameraZoom)
     {
         KillPlayer.kill();
     }
 }
Example #2
0
 void doWindow(int windowID)
 {
     if (GUI.Button(new Rect(windowRect.width / 2 - 50, windowRect.height / 2 + 20,
                             100, 50), "", quitButtonStyle))
     {
         aud.once    = false;
         aud.twice   = false;
         aud.playing = false;
         aud.thrice  = false;
         aud.fource  = false;
         UnityEngine.SceneManagement.SceneManager.LoadScene(0);
     }
     if (GUI.Button(new Rect(windowRect.width / 2 - 50, windowRect.height / 2 - 60,
                             100, 50), "", resetButtonStyle))
     {
         KillPlayer.kill();
     }
 }