localization - closes #17 & #16 #19

Merged
Fangh merged 13 commits from localization into main 2024-02-29 21:50:50 +00:00
Showing only changes of commit 24c001dcc7 - Show all commits

View File

@ -297,6 +297,8 @@ public void StartGame()
/// </summary>
private void OnRoomUpdate(object sender, ValueChangedEventArgs e)
{
GameState lastState = myRoom != null ? (GameState)myRoom.currentState : GameState.EnteringName;
try
{
if (e?.Snapshot?.GetRawJsonValue() != null)
@ -316,7 +318,6 @@ private void OnRoomUpdate(object sender, ValueChangedEventArgs e)
return;
}
GameState lastState = (GameState)myRoom.currentState;
Debug.Log($"lasState = {lastState}. Currentstep = {(GameState)myRoom.currentState}", this);
if (myRoom.currentState != (int)lastState)