Skip to content

Commit

Permalink
Merge pull request #9 from Delsin-Yu/Awake-not-working
Browse files Browse the repository at this point in the history
Fix broken Node.AwakeAsync
  • Loading branch information
Atlinx authored Mar 26, 2024
2 parents 7e60152 + cc06fb1 commit a508d1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/GDTask/Triggers/AsyncEnterTreeTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public static AsyncEnterTreeTrigger GetAsyncAwakeTrigger(this Node node)

public sealed partial class AsyncEnterTreeTrigger : AsyncTriggerBase<AsyncUnit>
{
public override void _EnterTree()
{
base._EnterTree();
RaiseEvent(AsyncUnit.Default);
}

public GDTask AwakeAsync()
{
if (calledEnterTree) return GDTask.CompletedTask;
Expand Down

0 comments on commit a508d1b

Please sign in to comment.