mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +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 int _respawnIndex;
|
||||||
private bool _wearingSuit;
|
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()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@ -207,4 +212,4 @@ internal class ShipRecoveryPoint : MonoBehaviour
|
|||||||
enabled = false;
|
enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user