sphinx2001

BaseController.cs

Feb 5th, 2021 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class BaseController : MonoBehaviour
  7. {
  8.     void Update()
  9.     {
  10.         if (GameSystem.HP <= 0)
  11.         {
  12.             SceneManager.LoadScene("game_over");
  13.         }
  14.     }
  15. }
  16.  
Add Comment
Please, Sign In to add comment