private void OnUpdateResourcesComplete(GameFramework.Resource.IResourceGroup resourceGroup, bool result) { if (result) { m_UpdateResourcesComplete = true; Log.Info("Update resources complete with no errors."); } else { Log.Error("Update resources complete with errors."); } }
private void OnUpdateResourcesComplete(GameFramework.Resource.IResourceGroup resourceGroup, bool result) { if (resourceGroup.Name == "Base") { if (result) { Log.Info("Update resource group 'Base' complete with no errors."); Log.Info("Start update resource group 'Music' ..."); GameEntry.Resource.UpdateResources("Music", OnUpdateResourcesComplete); } else { Log.Error("Update resource group 'Base' complete with errors."); } } else if (resourceGroup.Name == "Music") { if (result) { Log.Info("Update resource group 'Music' complete with no errors."); Log.Info("Start update other resources ..."); GameEntry.Resource.UpdateResources(OnUpdateResourcesComplete); } else { Log.Error("Update resource group 'Music' complete with errors."); } } else // resourceGroup.Name == string.Empty { if (result) { Log.Info("Update other resources complete with no errors."); ProcessUpdateResourcesComplete(); } else { Log.Error("Update other resources complete with errors."); } } }