示例#1
0
 private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e)
 {
     if (m_EnableLoadSceneDependencyAssetEvent)
     {
         m_EventComponent.Fire(this, ReferencePool.Acquire <LoadSceneDependencyAssetEventArgs>().Fill(e));
     }
 }
示例#2
0
 private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e)
 {
     if (m_EnableLoadSceneDependencyAssetEvent)
     {
         m_EventComponent.Fire(this, new LoadSceneDependencyAssetEventArgs(e));
     }
 }
示例#3
0
 private void LoadSceneDependencyAssetCallback(string sceneAssetName, string dependencyAssetName, int loadedCount, int totalCount, object userData)
 {
     if (m_LoadSceneDependencyAssetEventHandler != null)
     {
         LoadSceneDependencyAssetEventArgs loadSceneDependencyAssetEventArgs = LoadSceneDependencyAssetEventArgs.Create(sceneAssetName, dependencyAssetName, loadedCount, totalCount, userData);
         m_LoadSceneDependencyAssetEventHandler(this, loadSceneDependencyAssetEventArgs);
         ReferencePool.Release(loadSceneDependencyAssetEventArgs);
     }
 }
示例#4
0
 private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e)
 {
     m_EventComponent.Fire(this, LoadSceneDependencyAssetEventArgs.Create(e));
 }