コード例 #1
0
    /// <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);
    }
コード例 #2
0
 // 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);
     }
 }
コード例 #3
0
 void OnTrainClick(int ActionID)
 {
     EmoCognitiv.StartTrainingCognitiv(EmoCognitiv.cognitivActionList[ActionID]);
 }