/// <summary> /// when the button Train of posActionButton is clicked /// </summary> /// <param name="posActionButton"></param> void OnTrainClick(int posActionButton, int ActionID) { focusWindow = 100; if (!isShowProgessBar) { timeCount = Time.time; isShowProgessBar = true; } EmoCognitiv.StartTrainingCognitiv(EmoCognitiv.cognitivActionList[ActionID]); Debug.Log(ActionID); }
// Update is called once per frame void Update() { if (Input.GetKeyUp(KeyCode.P)) { EmoCognitiv.StartTrainingCognitiv(EdkDll.EE_CognitivAction_t.COG_NEUTRAL); } if (Input.GetKeyUp(KeyCode.O)) { EmoCognitiv.StartTrainingCognitiv(EdkDll.EE_CognitivAction_t.COG_LIFT); } if (Input.GetKeyUp(KeyCode.I)) { EmoCognitiv.StartTrainingCognitiv(EdkDll.EE_CognitivAction_t.COG_PUSH); } if (Input.GetKeyUp(KeyCode.U)) { EmoCognitiv.StartTrainingCognitiv(EdkDll.EE_CognitivAction_t.COG_PULL); } }
void OnTrainClick(int ActionID) { EmoCognitiv.StartTrainingCognitiv(EmoCognitiv.cognitivActionList[ActionID]); }