示例#1
0
 public void Action(CallbackContext cc)
 {
     if (cc.performed && myIO)
     {
         myIO.OnPlayerAction(Actor.SON);
     }
 }
示例#2
0
 public void MotherAction(CallbackContext cc)
 {
     if (cc.ReadValue <float>() == 1.0f && !actionButtonClicked)
     {
         actionButtonClicked = true;
         myIO?.OnPlayerAction(Actor.MOTHER);
     }
     else if (cc.ReadValue <float>() == 0.0f && actionButtonClicked)
     {
         actionButtonClicked = false;
     }
 }