// Use this for initialization private void Start() { UnitySystemConsoleRedirector.Redirect(); OriginalTimeScalse = Time.timeScale; Time.timeScale = 0; Queued = false; PlayerId = (new Random()).Next(1000); Console.WriteLine("Your playerId is " + PlayerId); QueueButton = GameObject.FindGameObjectWithTag("QueueButton").GetComponent <Button>(); EventChannel.Connect(); PlayerManager.SetEventMessages(EventChannel.WebSocket); Console.WriteLine("Created"); }