Skip to content

Commit

Permalink
Fix AsyncEnterTreeTrigger not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Delsin-Yu committed Jan 27, 2024
1 parent 4bf2655 commit cc06fb1
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 cc06fb1

Please sign in to comment.