Skip to content

Commit 80e99c2

Browse files
committed
Fix templates being destroyed on scene load
1 parent 7fe1da6 commit 80e99c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Core/Game/Agents/AgentController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public static void Setup ()
4545
OrganizerObject = LSUtility.CreateEmpty ().transform;
4646
OrganizerObject.gameObject.name = "OrganizerObject";
4747
OrganizerObject.gameObject.SetActive (false);
48+
49+
GameObject.DontDestroyOnLoad(OrganizerObject);
4850
for (int i = 0; i < AgentData.Length; i++) {
4951
IAgentData interfacer = AgentData [i];
5052
string agentCode = interfacer.Name;

0 commit comments

Comments
 (0)