private void Start() { Coffre.Créer(); Transform o = Instantiate(PlayerManager, new Vector3(5, 5, 0), Quaternion.identity); o.GetComponent <PlayerManager>().Create(10, 2, int.Parse((string)Coffre.Regarder("id")), (string)Coffre.Regarder("mode") == "solo"); }
void Start() { Coffre.Créer(); UDPEvent.Register(this); error.text = "Server not reachable"; //loginButton.enabled = false; loginButton.gameObject.SetActive(false); try { _socket.Client(ip, 27000); _socket.Send("PING"); } catch { } }