Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Oculus.Platform;
- using Oculus.Platform.Models;
- void CheckEntitlement()
- {
- Entitlements.IsUserEntitledToApplication().OnComplete((Message msg) =>
- {
- if (msg.IsError)
- {
- Debug.LogError("User not entitled. Exiting game.");
- Application.Quit();
- }
- else
- {
- Debug.Log("User entitled. Proceeding.");
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement