Skip to content

Commit a508d1b

Browse files
authored
Merge pull request #9 from Delsin-Yu/Awake-not-working
Fix broken Node.AwakeAsync
2 parents 7e60152 + cc06fb1 commit a508d1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

addons/GDTask/Triggers/AsyncEnterTreeTrigger.cs

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ public static AsyncEnterTreeTrigger GetAsyncAwakeTrigger(this Node node)
1313

1414
public sealed partial class AsyncEnterTreeTrigger : AsyncTriggerBase<AsyncUnit>
1515
{
16+
public override void _EnterTree()
17+
{
18+
base._EnterTree();
19+
RaiseEvent(AsyncUnit.Default);
20+
}
21+
1622
public GDTask AwakeAsync()
1723
{
1824
if (calledEnterTree) return GDTask.CompletedTask;

0 commit comments

Comments
 (0)