コード例 #1
0
        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);
        }
コード例 #2
0
        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}");
                }
            }
        }