7 BaseGameMode gameMode = BaseGameMode.Cast(item);
11 SCR_PlayerSpawnPointManagerComponent playerSpawnPointManager = SCR_PlayerSpawnPointManagerComponent.Cast(gameMode.FindComponent(SCR_PlayerSpawnPointManagerComponent));
12 if (!playerSpawnPointManager)
19 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
24 BaseGameMode gameMode = BaseGameMode.Cast(item);
28 SCR_PlayerSpawnPointManagerComponent playerSpawnPointManager = SCR_PlayerSpawnPointManagerComponent.Cast(gameMode.FindComponent(SCR_PlayerSpawnPointManagerComponent));
29 if (!playerSpawnPointManager)
32 playerSpawnPointManager.EnableDeployableSpawnPoints(var.GetBool(), playerID);