private void OnKeyResolved(ApiKey key) { _apiKey = key; ApiKey.Cache(_apiKey); _api = new ApiUtils(_apiKey); _selectedApp = _api.GetAppInfo(_appCache.AppByPlatform(EditorUserBuildSettings.activeBuildTarget)); BeginSelectAppView(); }
private void Init() { if (_apiKey == null) { _apiKey = ApiKey.LoadCached(); if (_apiKey == null) { var submitKey = new Views.SubmitKey(); _currentView = submitKey; submitKey.OnKeyResolve += (key) => { _apiKey = key; ApiKey.Cache(key); _currentView = null; }; } } }