Пример #1
0
    private void Awake()
    {
        instance = this;
        DontDestroyOnLoad(this.gameObject);

        Init();
    }
Пример #2
0
 private void OnDestroy()
 {
     instance = null;
 }