Esempio n. 1
0
    private void Awake()
    {
        instance = this;
        DontDestroyOnLoad(this.gameObject);

        Init();
    }
Esempio n. 2
0
 private void OnDestroy()
 {
     instance = null;
 }