void Awake()
    {
        instance = this;
        if (Scenman.instance == null)
        {
            return;
        }

        this.Init();
    }
Example #2
0
    void Awake()
    {
        instance = this;
        if (SceneManager.instance == null)
        {
            return;
        }

        this.Init();
    }
 private void OnDestroy()
 {
     instance = null;
 }