Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions unity/Assets/SimpleExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,29 +137,24 @@ private static void RequestPermission(string permissionName) {

void Start()
{
#if USE_EMBEDDED_LIB
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
#if USE_EMBEDDED_LIB && UNITY_STANDALONE_WIN && !UNITY_EDITOR
string[] args = Environment.GetCommandLineArgs();
if (args.Length > 1)
{
_eItf.ProcessCallback(args[1]);
return;
}
#else
// Only for desktop with embedded cortex library for standalone windows
UnityEngine.Debug.Log("Only support embedded lib for for standalone windows.");
return;
#endif
#endif
#endif

#if UNITY_ANDROID
#if UNITY_ANDROID
StartEmotivUnityItfForAndroid();
# elif UNITY_IOS
#elif UNITY_IOS
UnityEngine.Debug.Log("SimpleExp: Start EmotivUnityItf for ios");
_eItf.Init(AppConfig.ClientId, AppConfig.ClientSecret, AppConfig.AppName, AppConfig.AllowSaveLogToFile, AppConfig.IsDataBufferUsing);
_eItf.Start();
#else
UnityEngine.Debug.Log("SimpleExp: Start EmotivUnityItf for desktop " + AppConfig.AppUrl);
#else
UnityEngine.Debug.Log("SimpleExp: Start EmotivUnityItf for desktop " + AppConfig.AppUrl);
_eItf.Init(AppConfig.ClientId, AppConfig.ClientSecret, AppConfig.AppName, AppConfig.AllowSaveLogToFile, AppConfig.IsDataBufferUsing, AppConfig.AppUrl);
_eItf.Start();
_isEmotivUnityItfInitialized = true;
Expand Down
Loading