void OnDestroy()
 {
     if (Instance = this)
     {
         Instance = null;
     }
 }
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        TeddyBear.SetActive(false);
    }
Example #3
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        gameOverUI.SetActive(false);
        TeddyBear.SetActive(false);
    }
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        gameIsActive = true;
        TeddyBear.SetActive(false);
        TeddyParticleSystem.SetActive(false);
        TeddyBearYay.SetActive(false);
        TeddyBearSad.SetActive(false);
        TeddyBearBoo.SetActive(false);
    }