public static void EnableCognitivActionsList() { Debug.Log("Set CognitivList Enable"); EmoCognitiv.cognitivActionLever = 0; uint num = 0u; for (int i = 1; i < EmoCognitiv.cognitivActionList.Length; i++) { if (EmoCognitiv.cognitivActionsEnabled[i]) { num |= (uint)EmoCognitiv.cognitivActionList[i]; EmoCognitiv.cognitivActionLever++; } } EdkDll.EE_CognitivSetActiveActions((uint)EmoUserManagement.currentUser, num); }
/// <summary> /// Enable actions in arraylist , Work only in 2.6 or upper /// </summary> public static void EnableCognitivActionsList() { Debug.Log("Set CognitivList Enable"); cognitivActionLever = 0; uint cognitivActions = 0x0000; for (int i = 1; i < cognitivActionList.Length; i++) { if (cognitivActionsEnabled[i]) { cognitivActions = cognitivActions | ((uint)cognitivActionList[i]); cognitivActionLever++; } } EdkDll.EE_CognitivSetActiveActions((uint)EmoUserManagement.currentUser, cognitivActions); //EmoEngine.Instance.CognitivSetActiveActions((uint)EmoUserManagement.currentUser,(uint) cognitivActions); }
public void CognitivSetActiveActions(uint userId, uint activeActions) { EmoEngine.errorHandler(EdkDll.EE_CognitivSetActiveActions(userId, activeActions)); }