using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class TestServerLobbyText : MonoBehaviour { public static TestServerLobbyText Instance; private TextMeshPro welcomeText; private void Awake() { Instance = this; welcomeText = GetComponent(); welcomeText.gameObject.SetActive(false); } public void SetWelcomeText(string message, bool isLiveServer, bool isTestServer, bool isLocalServer) { if (isLiveServer) { welcomeText.gameObject.SetActive(false); } else if (isTestServer) { welcomeText.gameObject.SetActive(true); welcomeText.SetText("Welcome To \n Test Server!"); } else if (isLocalServer) { welcomeText.gameObject.SetActive(true); welcomeText.SetText("Welcome To \n Local Server!"); } } }