Skip to content

Commit 6b93976

Browse files
committed
[修复] 修复反激活的时候的生命周期时序错误的问题
1 parent 0ba5b41 commit 6b93976

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GameFrameX.Core/Components/BaseComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public virtual async Task Inactive()
8686
var agent = GetAgent();
8787
if (agent != null)
8888
{
89-
await agent.AfterInActivation();
90-
await agent.Inactive();
9189
await agent.BeforeInActivation();
90+
await agent.Inactive();
91+
await agent.AfterInActivation();
9292
}
9393

9494
IsActive = false;

0 commit comments

Comments
 (0)