11 if (!IsGameMode(item))
14 BaseGameMode gameMode =
GetGame().GetGameMode();
18 SCR_PlayerSpawnPointManagerComponent playerSpawnPointManager = SCR_PlayerSpawnPointManagerComponent.Cast(gameMode.FindComponent(SCR_PlayerSpawnPointManagerComponent));
19 if (!playerSpawnPointManager)
25 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
31 if (!IsGameMode(item))
34 BaseGameMode gameMode =
GetGame().GetGameMode();
38 SCR_PlayerSpawnPointManagerComponent playerSpawnPointManager = SCR_PlayerSpawnPointManagerComponent.Cast(gameMode.FindComponent(SCR_PlayerSpawnPointManagerComponent));
39 if (!playerSpawnPointManager)
43 playerSpawnPointManager.EnablePlayerSpawnPoints(var.GetBool(), playerID);