lose screen
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user