mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
ShipRecoveryPoint: change respawn text on language change
This commit is contained in:
parent
d07f228b62
commit
8ff995223d
@ -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()
|
||||
{
|
||||
@ -207,4 +212,4 @@ internal class ShipRecoveryPoint : MonoBehaviour
|
||||
enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user