08-26-2016 02:40 PM
08-26-2016 09:29 PM
using UnityEngine;
using System;
using Oculus.Platform;
using HutongGames;
public class Initialise : MonoBehaviour {
void Start () {
Core.Initialize();
}
public void CheckApplicationEntitlement() {
Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(IsUserEntitledToApplicationCallback);
}
void IsUserEntitledToApplicationCallback(Message msg){
if (msg.IsError){
// User is NOT entitled.
PlayMakerFSM.BroadcastEvent("Authno");
}
else{
// User IS entitled
PlayMakerFSM.BroadcastEvent("Authyes");
}
}
}
09-14-2016 09:46 AM
09-14-2016 11:45 AM
07-04-2017 01:23 AM