Skip to content

Commit 4e18148

Browse files
author
chiuan
committed
- fix:when TTUIRoot.Instance OnDestroy Should Set Singleton To Null.
1 parent 6941651 commit 4e18148

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/UIFramework/Source/TTUIRoot.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,10 @@ static GameObject CreateSubCanvasForRoot(Transform root,int sort)
9494

9595
return go;
9696
}
97+
98+
void OnDestroy()
99+
{
100+
m_Instance = null;
101+
}
97102
}
98103
}

0 commit comments

Comments
 (0)