mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:15:45 +00:00
23 lines
No EOL
534 B
C#
23 lines
No EOL
534 B
C#
using Godot;
|
|
|
|
namespace GTweensGodot.Contexts;
|
|
|
|
public partial class GodotGTweensContextNode : Node
|
|
{
|
|
public sealed override void _Ready()
|
|
{
|
|
ProcessMode = ProcessModeEnum.Always;
|
|
}
|
|
|
|
public sealed override void _Process(double delta)
|
|
{
|
|
float floatDelta = (float)delta;
|
|
|
|
if (!GetTree().Paused)
|
|
{
|
|
GodotGTweensContext.Instance.PausableContext.Tick(floatDelta);
|
|
}
|
|
|
|
GodotGTweensContext.Instance.UnpausableContext.Tick(floatDelta);
|
|
}
|
|
} |