public static void Init(Transform root) { GameObject obj = new GameObject(); obj.name = "VedioManager"; obj.transform.parent = root; Instance = obj.AddComponent <VideoMananger>(); }
/// <summary> /// 初始化组件 /// </summary> private void managersInit() { //Log.info(">> 2.初始化各种组件类"); //TODO init //初始化组件 this.gameObject.AddComponent <ComponentsInit>(); //SystemPlugins.Init(); StageManager.Init(); VideoMananger.Init(Core.CorePluginRoot); SoundManager.InitRoot(Core.CorePluginRoot); LoadThreadManager.Init(Core.CorePluginRoot); //GameLoop GameLoop.Init(Core.CorePluginRoot); GameLoop.EnableFrameLoop(true); // 协程代理工具 CoroutineDelegate.Init(Core.CorePluginRoot); }