コード例 #1
0
 public ResourceManager()
 {
     //获取事件管理器
     _event = GameFrameworkMode.GetModule <EventManager>();
     //资源异步加载的事件
     _resLoadAsyncSuccessEventArgs = new ResourceLoadAsyncSuccessEventArgs();
     _resLoadAsyncFailureEventArgs = new ResourceLoadAsyncFailureEventArgs();
     //场景事件
     _sceneLoadingEventArgs = new SceneLoadingEventArgs();
     _sceneLoadedEventArgs  = new SceneLoadedEventArgs();
     _sceneAsyncOperations  = new Dictionary <string, AsyncOperation>();
 }
コード例 #2
0
        public ScenarioManager()
        {
            //获取事件管理器
            _event = GameFrameworkMode.GetModule <EventManager>();


            //场景事件
            m_LoadedSceneAssetNames  = new List <string>();
            m_LoadingSceneAssetNames = new List <string>();
            _sceneLoadingEventArgs   = new SceneLoadingEventArgs();
            _sceneLoadedEventArgs    = new SceneLoadedEventArgs();
            _sceneAsyncOperations    = new Dictionary <string, AsyncOperation>();
        }