Advertisement
Hygcgggnngff

client applacation/server protector

Sep 28th, 2024 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. using Oculus.Platform;
  2. using Oculus.Platform.Models;
  3.  
  4. void CheckEntitlement()
  5. {
  6. Entitlements.IsUserEntitledToApplication().OnComplete((Message msg) =>
  7. {
  8. if (msg.IsError)
  9. {
  10. Debug.LogError("User not entitled. Exiting game.");
  11. Application.Quit();
  12. }
  13. else
  14. {
  15. Debug.Log("User entitled. Proceeding.");
  16. }
  17. });
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement