Пример #1
0
 public void SetCallbacks(ICharacterControlsActions instance)
 {
     if (m_Wrapper.m_CharacterControlsActionsCallbackInterface != null)
     {
         @MoveLaterally.started    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveLaterally;
         @MoveLaterally.performed  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveLaterally;
         @MoveLaterally.canceled   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveLaterally;
         @MoveVertically.started   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveVertically;
         @MoveVertically.performed -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveVertically;
         @MoveVertically.canceled  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMoveVertically;
         @Boost.started            -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnBoost;
         @Boost.performed          -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnBoost;
         @Boost.canceled           -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnBoost;
         @Look.started             -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnLook;
         @Look.performed           -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnLook;
         @Look.canceled            -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnLook;
     }
     m_Wrapper.m_CharacterControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         @MoveLaterally.started    += instance.OnMoveLaterally;
         @MoveLaterally.performed  += instance.OnMoveLaterally;
         @MoveLaterally.canceled   += instance.OnMoveLaterally;
         @MoveVertically.started   += instance.OnMoveVertically;
         @MoveVertically.performed += instance.OnMoveVertically;
         @MoveVertically.canceled  += instance.OnMoveVertically;
         @Boost.started            += instance.OnBoost;
         @Boost.performed          += instance.OnBoost;
         @Boost.canceled           += instance.OnBoost;
         @Look.started             += instance.OnLook;
         @Look.performed           += instance.OnLook;
         @Look.canceled            += instance.OnLook;
     }
 }
Пример #2
0
 public void SetCallbacks(ICharacterControlsActions instance)
 {
     if (m_Wrapper.m_CharacterControlsActionsCallbackInterface != null)
     {
         @Movement.started   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Movement.performed -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Movement.canceled  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Run.started        -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Run.performed      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Run.canceled       -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Camera.started     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnCamera;
         @Camera.performed   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnCamera;
         @Camera.canceled    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnCamera;
         @Jump.started       -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.performed     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.canceled      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
     }
     m_Wrapper.m_CharacterControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started   += instance.OnMovement;
         @Movement.performed += instance.OnMovement;
         @Movement.canceled  += instance.OnMovement;
         @Run.started        += instance.OnRun;
         @Run.performed      += instance.OnRun;
         @Run.canceled       += instance.OnRun;
         @Camera.started     += instance.OnCamera;
         @Camera.performed   += instance.OnCamera;
         @Camera.canceled    += instance.OnCamera;
         @Jump.started       += instance.OnJump;
         @Jump.performed     += instance.OnJump;
         @Jump.canceled      += instance.OnJump;
     }
 }
Пример #3
0
 public void SetCallbacks(ICharacterControlsActions instance)
 {
     if (m_Wrapper.m_CharacterControlsActionsCallbackInterface != null)
     {
         @Movement.started             -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Movement.performed           -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Movement.canceled            -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnMovement;
         @Jump.started                 -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.performed               -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.canceled                -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @ChangeForm.started           -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnChangeForm;
         @ChangeForm.performed         -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnChangeForm;
         @ChangeForm.canceled          -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnChangeForm;
         @Special.started              -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnSpecial;
         @Special.performed            -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnSpecial;
         @Special.canceled             -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnSpecial;
         @Debug_IncreaseTime.started   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_IncreaseTime;
         @Debug_IncreaseTime.performed -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_IncreaseTime;
         @Debug_IncreaseTime.canceled  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_IncreaseTime;
         @Debug_DecreaseTime.started   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_DecreaseTime;
         @Debug_DecreaseTime.performed -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_DecreaseTime;
         @Debug_DecreaseTime.canceled  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnDebug_DecreaseTime;
     }
     m_Wrapper.m_CharacterControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Movement.started             += instance.OnMovement;
         @Movement.performed           += instance.OnMovement;
         @Movement.canceled            += instance.OnMovement;
         @Jump.started                 += instance.OnJump;
         @Jump.performed               += instance.OnJump;
         @Jump.canceled                += instance.OnJump;
         @ChangeForm.started           += instance.OnChangeForm;
         @ChangeForm.performed         += instance.OnChangeForm;
         @ChangeForm.canceled          += instance.OnChangeForm;
         @Special.started              += instance.OnSpecial;
         @Special.performed            += instance.OnSpecial;
         @Special.canceled             += instance.OnSpecial;
         @Debug_IncreaseTime.started   += instance.OnDebug_IncreaseTime;
         @Debug_IncreaseTime.performed += instance.OnDebug_IncreaseTime;
         @Debug_IncreaseTime.canceled  += instance.OnDebug_IncreaseTime;
         @Debug_DecreaseTime.started   += instance.OnDebug_DecreaseTime;
         @Debug_DecreaseTime.performed += instance.OnDebug_DecreaseTime;
         @Debug_DecreaseTime.canceled  += instance.OnDebug_DecreaseTime;
     }
 }
Пример #4
0
 public void SetCallbacks(ICharacterControlsActions instance)
 {
     if (m_Wrapper.m_CharacterControlsActionsCallbackInterface != null)
     {
         @ZAxis.started      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnZAxis;
         @ZAxis.performed    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnZAxis;
         @ZAxis.canceled     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnZAxis;
         @XAxis.started      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnXAxis;
         @XAxis.performed    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnXAxis;
         @XAxis.canceled     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnXAxis;
         @Run.started        -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Run.performed      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Run.canceled       -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRun;
         @Roll.started       -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRoll;
         @Roll.performed     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRoll;
         @Roll.canceled      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRoll;
         @Punch.started      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnPunch;
         @Punch.performed    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnPunch;
         @Punch.canceled     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnPunch;
         @Ragdoll.started    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRagdoll;
         @Ragdoll.performed  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRagdoll;
         @Ragdoll.canceled   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnRagdoll;
         @AltPunch.started   -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnAltPunch;
         @AltPunch.performed -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnAltPunch;
         @AltPunch.canceled  -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnAltPunch;
         @Jump.started       -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.performed     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Jump.canceled      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnJump;
         @Shoot.started      -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnShoot;
         @Shoot.performed    -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnShoot;
         @Shoot.canceled     -= m_Wrapper.m_CharacterControlsActionsCallbackInterface.OnShoot;
     }
     m_Wrapper.m_CharacterControlsActionsCallbackInterface = instance;
     if (instance != null)
     {
         @ZAxis.started      += instance.OnZAxis;
         @ZAxis.performed    += instance.OnZAxis;
         @ZAxis.canceled     += instance.OnZAxis;
         @XAxis.started      += instance.OnXAxis;
         @XAxis.performed    += instance.OnXAxis;
         @XAxis.canceled     += instance.OnXAxis;
         @Run.started        += instance.OnRun;
         @Run.performed      += instance.OnRun;
         @Run.canceled       += instance.OnRun;
         @Roll.started       += instance.OnRoll;
         @Roll.performed     += instance.OnRoll;
         @Roll.canceled      += instance.OnRoll;
         @Punch.started      += instance.OnPunch;
         @Punch.performed    += instance.OnPunch;
         @Punch.canceled     += instance.OnPunch;
         @Ragdoll.started    += instance.OnRagdoll;
         @Ragdoll.performed  += instance.OnRagdoll;
         @Ragdoll.canceled   += instance.OnRagdoll;
         @AltPunch.started   += instance.OnAltPunch;
         @AltPunch.performed += instance.OnAltPunch;
         @AltPunch.canceled  += instance.OnAltPunch;
         @Jump.started       += instance.OnJump;
         @Jump.performed     += instance.OnJump;
         @Jump.canceled      += instance.OnJump;
         @Shoot.started      += instance.OnShoot;
         @Shoot.performed    += instance.OnShoot;
         @Shoot.canceled     += instance.OnShoot;
     }
 }