mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
36 lines
No EOL
656 B
C#
36 lines
No EOL
656 B
C#
using Godot;
|
|
using Godot.Collections;
|
|
|
|
namespace Cirno.Scripts.Resources.Events;
|
|
|
|
[GlobalClass]
|
|
public partial class AlarmDisableEvent : EventResource
|
|
{
|
|
private bool _isComplete = false;
|
|
|
|
public override bool IsComplete()
|
|
{
|
|
return _isComplete;
|
|
}
|
|
|
|
public override void Init(Node parent)
|
|
{
|
|
|
|
}
|
|
|
|
public override void Start(Node parent)
|
|
{
|
|
if (AlarmManager.Instance is null)
|
|
{
|
|
_isComplete = true;
|
|
return;
|
|
};
|
|
AlarmManager.Instance.DisableAlarm();
|
|
_isComplete = true;
|
|
}
|
|
|
|
public override void UpdateEvent(double delta)
|
|
{
|
|
|
|
}
|
|
} |