private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e) { if (m_EnableLoadSceneDependencyAssetEvent) { m_EventComponent.Fire(this, ReferencePool.Acquire <LoadSceneDependencyAssetEventArgs>().Fill(e)); } }
private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e) { if (m_EnableLoadSceneDependencyAssetEvent) { m_EventComponent.Fire(this, new LoadSceneDependencyAssetEventArgs(e)); } }
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); } }
private void OnLoadSceneDependencyAsset(object sender, GameFramework.Scene.LoadSceneDependencyAssetEventArgs e) { m_EventComponent.Fire(this, LoadSceneDependencyAssetEventArgs.Create(e)); }