mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-02 15:21:16 +00:00
Added GTWeen
This commit is contained in:
parent
457998788e
commit
2036e4e748
152 changed files with 5889 additions and 7 deletions
|
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue