11-03-2018 10:25 AM
private const string LIKES_TO_WIOptional = "firstencounter";
// true if the local user hit the achievement Count setup on the dashboard
private bool m_likesToWinUnlocked;
public bool LikesToWin
{
get { return m_likesToWinUnlocked; }
}
void Awake()
{
try
{
string id = "APPIDPLACEHOLDERFORSAFETYREASON";
Core.AsyncInitialize(id);
Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);
}
catch (UnityException e)
{
Debug.LogError("Platform failed to initialize due to exception.");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
}
void EntitlementCallback(Message msg)
{
if (msg.IsError)
{
Debug.LogError("You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
}
else
{
Debug.Log("You are entitled to use this app.");
}
}
11-03 20:19:51.870: W/Unity(8691): The 'Oculus App Id (210074644000~~~~)' field in 'Oculus Platform/Edit Settings' is clobbering appId (21007464400~~~~)
that you passed in to Platform.Core.Init. You should only specify this in one place. We recommend the menu location.
11-03 20:19:51.870: W/Unity(8691):
11-03 20:19:51.870: W/Unity(8691): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
11-03 20:19:51.873: E/Unity(8691): Unable to find ovrplatformloader
11-03 20:19:51.999: E/Unity(8691): DllNotFoundException: ovrplatformloader
11-03 20:19:51.999: E/Unity(8691): at (wrapper managed-to-native) Oculus.Platform.CAPI:ovr_UnityInitWrapperAsynchronous (string)
11-03 20:19:51.999: E/Unity(8691): at Oculus.Platform.AndroidPlatform.AsyncInitialize (System.String appId) [0x00000] in <filename unknown>:0
11-03 20:19:51.999: E/Unity(8691): at Oculus.Platform.Core.AsyncInitialize (System.String appId) [0x00000] in <filename unknown>:0
11-03 20:19:51.999: E/Unity(8691): at OculusSDKController.Awake () [0x00000] in <filename unknown>:0
11-03 20:19:51.999: E/Unity(8691):
11-03 20:19:51.999: E/Unity(8691): (Filename: Line: -1)