ShipRecoveryPoint: change respawn text on language change

This commit is contained in:
JohnCorby 2022-06-08 14:01:43 -07:00
parent d07f228b62
commit 8ff995223d

View File

@ -16,7 +16,12 @@ internal class ShipRecoveryPoint : MonoBehaviour
private int _respawnIndex;
private bool _wearingSuit;
private static readonly UITextType _respawnPlayerText = UIHelper.AddToUITable(QSBLocalization.Current.RespawnPlayer);
private static UITextType _respawnPlayerText;
static ShipRecoveryPoint() =>
QSBLocalization.LanguageChanged += () =>
// language change clears the table, so we have to add this back
_respawnPlayerText = UIHelper.AddToUITable(QSBLocalization.Current.RespawnPlayer);
private void Awake()
{