Пример #1
0
 public void Init()
 {
     VrAssetService     = VrAssetService.m_Instance;
     m_LoggedIn         = false;
     m_RefreshRequested = true;
     m_CooldownTimer    = VrAssetService.m_Instance.m_SketchbookRefreshInterval;
 }
Пример #2
0
        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);
            }
        }