Sfoglia il codice sorgente

allow bot name to come through

mbunch_kascope 1 anno fa
parent
commit
8a2085540c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Assets/Scripts/TurnStateMachine.cs

+ 1 - 1
Assets/Scripts/TurnStateMachine.cs

@@ -214,7 +214,7 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
                 player.PlayerNameText.transform.parent.gameObject.SetActive(true);
                 player.PlayerNameText.gameObject.SetActive(true);
 
-                if(player.isYou)
+                if(player.isYou || GManager.instance.IsAI)
                     player.PlayerNameText.text = player.PlayerName;
             }
         }