public override void InitialiseAction(PlayerInput playerInput, Animator anim, CharacterManager abCharacterManager) { primaryBoundInput.PerformedActions += (InputAction.CallbackContext cc) => { Perform(currentTransform); }; primaryBoundInput.CancelledActions += (InputAction.CallbackContext cc) => { Cancel(); }; base.InitialiseAction(playerInput, anim, abCharacterManager); }
public override void InitialiseAction(PlayerInput playerInput, Animator anim, CharacterManager manager) { primaryBoundInput.PerformedActions += (InputAction.CallbackContext cc) => { Perform(currentTransform); }; base.InitialiseAction(playerInput, anim, manager); if (characterManager && characterManager.PositionManager) { shootPosition = characterManager.PositionManager.GetPosition(ShootPositionName); if (!shootPosition) { DebugManager.WarningMessage($"shootPosition is null on action '{name}' on GameObject: {characterManager.name}"); } } }