Esempio n. 1
0
 // Start is called before the first frame update
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
 private void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Esempio n. 3
0
 // Use this for initialization
 void Awake()
 {
     DontDestroyOnLoad(this.gameObject);//ma btdmar 3l load aw unload
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Esempio n. 4
0
    void Awake()
    {
        // keep AdManager instance alive
        DontDestroyOnLoad(this.gameObject);

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(this.gameObject); // there is already an instance so detroy
        }
    }
Esempio n. 5
0
    void Awake()
    {
        DontDestroyOnLoad(this.gameObject);

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(this.gameObject);
        }

        Advertisement.Initialize("1675995", false);
    }