Exemplo n.º 1
0
 void OnDisable()
 {
     if (instance != null)
     {
         instance = null;
     }
 }
Exemplo n.º 2
0
    void Start()
    {
        mainPlayerCollider = PlayerMove.MainPlayerCollider;

        // this is so the HUDMenuController knows how many objectives there are
        HUDMenuController.addObjective(isFinal);
    }
Exemplo n.º 3
0
 void OnEnable()
 {
     if (instance != null && instance != this)
     {
         // Application.Quit(); // replace this with a proper throw statement
     }
     else
     {
         instance = this;
     }
 }
Exemplo n.º 4
0
 void OnApplicationQuit()
 {
     instance = null;
 }