mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 14:55:53 +00:00
Alert Signs
This commit is contained in:
parent
d3634a3dd2
commit
5452b36f32
13 changed files with 226 additions and 22 deletions
32
Scripts/Resources/Events/AlarmDisableEvent.cs
Normal file
32
Scripts/Resources/Events/AlarmDisableEvent.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Cirno.Scripts.Resources.Events;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class AlarmDisableEvent : EventResource
|
||||
{
|
||||
private bool _isComplete = false;
|
||||
private AlarmManager _alarmManager;
|
||||
|
||||
public override bool IsComplete()
|
||||
{
|
||||
return _isComplete;
|
||||
}
|
||||
|
||||
public override void Init(Node2D parent)
|
||||
{
|
||||
_alarmManager = parent.GetAlarmManager();
|
||||
}
|
||||
|
||||
public override void Start(Node2D parent)
|
||||
{
|
||||
_alarmManager.DisableAlarm();
|
||||
_isComplete = true;
|
||||
}
|
||||
|
||||
public override void UpdateEvent(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue