30 lines
589 B
C#
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;
|
|
}
|
|
}
|
|
|
|
}
|