private EngineManger() { if (_insatnce != null) { throw new Exception("单例错误"); } _insatnce = this; Init(); }
private void RunGame() { // 开始我的项目啦^_^ EngineManger.GetInstance().AddCompentToGo(gameObject, "SceneMananger"); DestroyImmediate(this); }