Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (InputManager_JHW.LTouchHandleOn() && InputManager_JHW.LTriggerOn())
     {
         LHandAni.Play("Fist");
     }
     else if (InputManager_JHW.LTouchHandleOn())
     {
         LHandAni.Play("restDown");
     }
     else if (InputManager_JHW.LTriggerOn())
     {
         LHandAni.Play("IndexFingerDown");
     }
     else
     {
         LHandAni.Play("Idle");
     }
     if (InputManager_JHW.RTouchHandleOn() && InputManager_JHW.RTriggerOn())
     {
         RHandAni.Play("Fist");
     }
     else if (InputManager_JHW.RTouchHandleOn())
     {
         RHandAni.Play("restDown");
     }
     else if (InputManager_JHW.RTriggerOn())
     {
         RHandAni.Play("IndexFingerDown");
     }
     else
     {
         RHandAni.Play("Idle");
     }
 }