public void Init() { VrAssetService = VrAssetService.m_Instance; m_LoggedIn = false; m_RefreshRequested = true; m_CooldownTimer = VrAssetService.m_Instance.m_SketchbookRefreshInterval; }
public override void Init(GameObject rParent, string sText) { base.Init(rParent, sText); m_AssetService = VrAssetService.m_Instance; InitUI(); OAuth2Identity.ProfileUpdated += OnProfileUpdated; RefreshUploadButton(Cloud.Poly); RefreshUploadButton(Cloud.Sketchfab); m_OnClose += OnClose; SketchMemoryScript.m_Instance.OperationStackChanged += OnOperationStackChanged; if (App.GoogleIdentity.LoggedIn) { PromoManager.m_Instance.RecordCompletion(PromoType.ShareSketch); } }