示例#1
0
    private void Awake()
    {
        instance = this;
        DontDestroyOnLoad(this.gameObject);

        Init();
    }
示例#2
0
 private void OnDestroy()
 {
     instance = null;
 }