2025-05-13 19:22:01 +08:00

30 lines
589 B
C#

using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using EventParts;
using Godot;
using Godot.Bridge;
using Godot.NativeInterop;
[ScriptPath("res://Scripts/Events/EventParts/WaitTime.cs")]
public partial class WaitTime : Node, EventPart
{
[Export(PropertyHint.None, "")]
private float frameTime;
public bool parallel { get; set; }
public EventController parent { get; set; }
public Coroutine routine { get; set; }
public IEnumerator Routine()
{
for (float a = 0f; a < frameTime; a += Main.deltaTime)
{
yield return null;
}
}
}