コード例 #1
0
 public void SetCallbacks(IPlayerMainActions instance)
 {
     if (m_Wrapper.m_PlayerMainActionsCallbackInterface != null)
     {
         @move.started          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @move.performed        -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @move.canceled         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @look.started          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @look.performed        -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @look.canceled         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Interaction.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnInteraction;
         @Interaction.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnInteraction;
         @Interaction.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnInteraction;
     }
     m_Wrapper.m_PlayerMainActionsCallbackInterface = instance;
     if (instance != null)
     {
         @move.started          += instance.OnMove;
         @move.performed        += instance.OnMove;
         @move.canceled         += instance.OnMove;
         @look.started          += instance.OnLook;
         @look.performed        += instance.OnLook;
         @look.canceled         += instance.OnLook;
         @Interaction.started   += instance.OnInteraction;
         @Interaction.performed += instance.OnInteraction;
         @Interaction.canceled  += instance.OnInteraction;
     }
 }
コード例 #2
0
 public void SetCallbacks(IPlayerMainActions instance)
 {
     if (m_Wrapper.m_PlayerMainActionsCallbackInterface != null)
     {
         @Move.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Jump.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @Jump.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @Jump.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @Look.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Look.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Look.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
     }
     m_Wrapper.m_PlayerMainActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started   += instance.OnMove;
         @Move.performed += instance.OnMove;
         @Move.canceled  += instance.OnMove;
         @Jump.started   += instance.OnJump;
         @Jump.performed += instance.OnJump;
         @Jump.canceled  += instance.OnJump;
         @Look.started   += instance.OnLook;
         @Look.performed += instance.OnLook;
         @Look.canceled  += instance.OnLook;
     }
 }
コード例 #3
0
 public void SetCallbacks(IPlayerMainActions instance)
 {
     if (m_Wrapper.m_PlayerMainActionsCallbackInterface != null)
     {
         @Move.started           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.performed         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.canceled          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Jump.started           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @Jump.performed         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @Jump.canceled          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnJump;
         @WeaponChange.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnWeaponChange;
         @WeaponChange.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnWeaponChange;
         @WeaponChange.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnWeaponChange;
         @Sprint.started         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSprint;
         @Sprint.performed       -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSprint;
         @Sprint.canceled        -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSprint;
         @Fire.started           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnFire;
         @Fire.performed         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnFire;
         @Fire.canceled          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnFire;
         @Zoom.started           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnZoom;
         @Zoom.performed         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnZoom;
         @Zoom.canceled          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnZoom;
         @Look.started           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Look.performed         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Look.canceled          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnLook;
         @Escape.started         -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEscape;
         @Escape.performed       -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEscape;
         @Escape.canceled        -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEscape;
     }
     m_Wrapper.m_PlayerMainActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started           += instance.OnMove;
         @Move.performed         += instance.OnMove;
         @Move.canceled          += instance.OnMove;
         @Jump.started           += instance.OnJump;
         @Jump.performed         += instance.OnJump;
         @Jump.canceled          += instance.OnJump;
         @WeaponChange.started   += instance.OnWeaponChange;
         @WeaponChange.performed += instance.OnWeaponChange;
         @WeaponChange.canceled  += instance.OnWeaponChange;
         @Sprint.started         += instance.OnSprint;
         @Sprint.performed       += instance.OnSprint;
         @Sprint.canceled        += instance.OnSprint;
         @Fire.started           += instance.OnFire;
         @Fire.performed         += instance.OnFire;
         @Fire.canceled          += instance.OnFire;
         @Zoom.started           += instance.OnZoom;
         @Zoom.performed         += instance.OnZoom;
         @Zoom.canceled          += instance.OnZoom;
         @Look.started           += instance.OnLook;
         @Look.performed         += instance.OnLook;
         @Look.canceled          += instance.OnLook;
         @Escape.started         += instance.OnEscape;
         @Escape.performed       += instance.OnEscape;
         @Escape.canceled        += instance.OnEscape;
     }
 }
コード例 #4
0
 public void SetCallbacks(IPlayerMainActions instance)
 {
     if (m_Wrapper.m_PlayerMainActionsCallbackInterface != null)
     {
         @Move.started                    -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.performed                  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Move.canceled                   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnMove;
         @Attack.started                  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnAttack;
         @Attack.performed                -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnAttack;
         @Attack.canceled                 -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnAttack;
         @EnergySkill1.started            -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill1;
         @EnergySkill1.performed          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill1;
         @EnergySkill1.canceled           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill1;
         @EnergySkill2.started            -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill2;
         @EnergySkill2.performed          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill2;
         @EnergySkill2.canceled           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnEnergySkill2;
         @StaminaSkill.started            -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnStaminaSkill;
         @StaminaSkill.performed          -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnStaminaSkill;
         @StaminaSkill.canceled           -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnStaminaSkill;
         @SwitchProjectileDebug.started   -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSwitchProjectileDebug;
         @SwitchProjectileDebug.performed -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSwitchProjectileDebug;
         @SwitchProjectileDebug.canceled  -= m_Wrapper.m_PlayerMainActionsCallbackInterface.OnSwitchProjectileDebug;
     }
     m_Wrapper.m_PlayerMainActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Move.started                    += instance.OnMove;
         @Move.performed                  += instance.OnMove;
         @Move.canceled                   += instance.OnMove;
         @Attack.started                  += instance.OnAttack;
         @Attack.performed                += instance.OnAttack;
         @Attack.canceled                 += instance.OnAttack;
         @EnergySkill1.started            += instance.OnEnergySkill1;
         @EnergySkill1.performed          += instance.OnEnergySkill1;
         @EnergySkill1.canceled           += instance.OnEnergySkill1;
         @EnergySkill2.started            += instance.OnEnergySkill2;
         @EnergySkill2.performed          += instance.OnEnergySkill2;
         @EnergySkill2.canceled           += instance.OnEnergySkill2;
         @StaminaSkill.started            += instance.OnStaminaSkill;
         @StaminaSkill.performed          += instance.OnStaminaSkill;
         @StaminaSkill.canceled           += instance.OnStaminaSkill;
         @SwitchProjectileDebug.started   += instance.OnSwitchProjectileDebug;
         @SwitchProjectileDebug.performed += instance.OnSwitchProjectileDebug;
         @SwitchProjectileDebug.canceled  += instance.OnSwitchProjectileDebug;
     }
 }