Skip to content

Commit c61d298

Browse files
committed
[修复] 修复Actor 激活时序问题
1 parent 025c572 commit c61d298

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GameFrameX.Core/Actors/Actor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ async Task Worker()
144144

145145
try
146146
{
147-
await agent.AfterActivation();
148-
await agent.Active();
149147
await agent.BeforeActivation();
148+
await agent.Active();
149+
await agent.AfterActivation();
150150
}
151151
catch (Exception e)
152152
{
@@ -181,9 +181,9 @@ async Task Worker()
181181

182182
try
183183
{
184-
await agent.AfterActivation();
185-
await agent.Active();
186184
await agent.BeforeActivation();
185+
await agent.Active();
186+
await agent.AfterActivation();
187187
}
188188
catch (Exception e)
189189
{

0 commit comments

Comments
 (0)