示例#1
0
 void Death()
 {
     if (gameController.lastCheckpoint != Vector2.zero)
     {
         transform.position = gameController.lastCheckpoint;
         camera.CameraReset();
     }
     else
     {
         SceneManager.LoadScene("Lvl_1");
     }
 }