示例#1
0
{ private void OnTriggerEnter2D(Collider2D collider)
  {
      Debug.Log("Checking collision with landmine.");
      string colliderTag = collider.tag;

      if (colliderTag == "Player")
      {
          Debug.Log("Player hit landmine.");
          LoadLevel.LoadCurrentLevel();
      }
  }
示例#2
0
 public void OnResetButtonClicked()
 {
     TogglePauseMenu();
     LoadLevel.LoadCurrentLevel();
 }