// Use this for initialization
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     gameObject.SetActive(false);
 }
Exemple #2
0
    // Use this for initialization

    public GameOverPanelScript()
    {
        Instance = this;
        IsOpen   = false;
    }