예제 #1
0
 // Token: 0x06005BB9 RID: 23481 RVA: 0x00200590 File Offset: 0x001FE990
 private static void IsReadyHandler(int nResult)
 {
     if (nResult == 0)
     {
         ViveportManager._isUserStatsReady    = true;
         ViveportManager._doesUserHaveLicense = false;
         Debug.Log("Viveport: IsReadyHandler is successful");
         ViveportManager.CheckLicense();
     }
     else
     {
         ViveportManager._isUserStatsReady    = false;
         ViveportManager._doesUserHaveLicense = false;
         ViveportManager.IsWaitingForInit     = false;
         Debug.Log("Viveport: IsReadyHandler error: " + nResult);
     }
 }
예제 #2
0
    // Token: 0x06005BB1 RID: 23473 RVA: 0x00200394 File Offset: 0x001FE794
    public static void Init()
    {
        if (ViveportManager.IsWaitingForInit)
        {
            Debug.LogError("Viveport: Init already pending");
            return;
        }
        if (!ViveportManager.IsViveportAppInstalled())
        {
            Debug.LogError("Viveport: Viveport software not installed");
            ViveportManager.InitStatusHandler(-1);
            return;
        }
        Action init = delegate
        {
            ViveportManager.IsWaitingForInit = true;
            if (ViveportManager.f__mg0 == null)
            {
                ViveportManager.f__mg0 = new StatusCallback(ViveportManager.InitStatusHandler);
            }
            Api.Init(ViveportManager.f__mg0, ViveportManager.APP_ID);
        };

        if (ViveportManager._isInitialized)
        {
            ViveportManager.IsWaitingForInit = true;
            Api.Shutdown(delegate(int nResult)
            {
                ViveportManager.ShutdownHandler(nResult);
                init();
            });
        }
        else
        {
            init();
        }
    }
예제 #3
0
 // Token: 0x06005BB4 RID: 23476 RVA: 0x00200479 File Offset: 0x001FE879
 public static bool DoesSignedInUserHaveLicense()
 {
     return(ViveportManager.IsUserSignedIn() && ViveportManager._doesUserHaveLicense);
 }
예제 #4
0
 // Token: 0x06005BB3 RID: 23475 RVA: 0x0020045B File Offset: 0x001FE85B
 public static bool IsUserSignedIn()
 {
     return(ViveportManager.IsInitialized && ViveportManager.GetUserId() != ViveportManager.kUnknownUserId);
 }