9 BaseGameMode gamemode = BaseGameMode.Cast(item);
13 SCR_GameModeHealthSettings gameModeHealthSettings = SCR_GameModeHealthSettings.Cast(gamemode.FindComponent(SCR_GameModeHealthSettings));
14 if (!gameModeHealthSettings)
20 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
25 BaseGameMode gamemode = BaseGameMode.Cast(item);
29 SCR_GameModeHealthSettings gameModeHealthSettings = SCR_GameModeHealthSettings.Cast(gamemode.FindComponent(SCR_GameModeHealthSettings));
30 if (!gameModeHealthSettings)
33 gameModeHealthSettings.SetRegenScale(var.GetFloat());