No More Player Pickup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user