No More Player Pickup

This commit is contained in:
Walter
2026-02-01 13:41:09 -06:00
parent 64a9edf527
commit 659a0ffd23
4 changed files with 51 additions and 36 deletions
+3
View File
@@ -145,6 +145,9 @@ public class PlayerPickupController : MonoBehaviour
var hasTrick = col.TryGetComponent<TrickController>(out var trick);
var hasPlayer = col.TryGetComponent<PlayerPlatformerController>(out var playerController);
if (hasPlayer) continue;
if (!hasTrick && !hasPlayer && !col.CompareTag("Interactable"))
{
continue;
@@ -10,6 +10,7 @@ public class PlayerPlatformerController : MonoBehaviour
[SerializeField] private string actionMapName = "Player";
[SerializeField] private string moveActionName = "Move";
[SerializeField] private string jumpActionName = "Jump";
[SerializeField] private string healActionName = "Crouch";
[SerializeField] private string controlSchemeName = "";
[SerializeField] private int gamepadIndex = -1;
[SerializeField] private float moveSpeed = 6f;
@@ -24,6 +25,7 @@ public class PlayerPlatformerController : MonoBehaviour
private InputActionAsset runtimeActions;
private InputAction moveAction;
private InputAction jumpAction;
private InputAction healAction;
public float LastMoveX { get; private set; }
private bool deviceFilterEnabled;