LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/AlarmButton.cs
2023-12-22 18:30:10 -05:00

25 lines
405 B
C#

using UnityEngine;
public class AlarmButton : MonoBehaviour
{
private Animator buttonAnimator;
public float timeSincePushing;
public void PushAlarmButton()
{
if (!(timeSincePushing < 1f))
{
buttonAnimator.SetTrigger("press");
HUDManager.Instance.TriggerAlarmHornEffect();
}
}
private void Update()
{
if (timeSincePushing <= 5f)
{
timeSincePushing += Time.deltaTime;
}
}
}