private void FetchEnvironments() { RemoteConfigWebApiClient.fetchEnvironmentsFinished += FetchDefaultEnvironment; try { RemoteConfigWebApiClient.FetchEnvironments(Application.cloudProjectId); } catch { RemoteConfigWebApiClient.fetchEnvironmentsFinished -= FetchDefaultEnvironment; DoCleanUp(); } }
private void OnEnvironmentCreated(string newEnvironmentId) { environmentId = newEnvironmentId; RemoteConfigWebApiClient.FetchEnvironments(Application.cloudProjectId); }
private void OnEnvironmentDeleted() { RemoteConfigWebApiClient.FetchEnvironments(Application.cloudProjectId); }