11 if (!IsGameMode(item))
return null;
14 if (!gameMode)
return null;
16 if (!respawnTimeComponent)
return null;
18 float value = respawnTimeComponent.GetRespawnTime();;
22 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
27 if (!gameMode)
return;
29 if (!respawnTimeComponent)
return;
30 float value = var.GetFloat();
33 if (value != respawnTimeComponent.GetRespawnTime())
35 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_ATTRIBUTES_RESPAWN_TIME_CHANGED, playerID, value * 1000);
38 respawnTimeComponent.SetRespawnTime(value);