lose screen

This commit is contained in:
Josiah
2026-02-01 09:55:27 -06:00
parent ba1dd13b54
commit 1b6566ef2b
8 changed files with 339 additions and 1 deletions
+8
View File
@@ -6,10 +6,17 @@ using UnityEngine;
public class PlayerStressController : MonoBehaviour
{
public PlayerPickupController pickupController;
[Header("Stress Settings")]
public float currentStress = 0f;
public float maxStress = 100f;
[Header("Panic Settings")]
[SerializeField] private float panicDuration = 1.2f;
private float panicEndTime;
public bool IsPanicking => Time.time < panicEndTime;
void Start()
{
// Start the repeating loop
@@ -46,6 +53,7 @@ public class PlayerStressController : MonoBehaviour
void HandlePanic()
{
panicEndTime = Time.time + panicDuration;
Debug.Log("Player is freaking out man!");
// Add effects like screen shake or slowing down the player here
}