Exemple #1
0
 void Start()
 {
     nick   = PlayerPrefs.GetString("MyNickname");
     IsHost = PlayerPrefs.GetInt("IsHost");
     Debug.LogError(IsHost);
     clientServer = GameObject.FindGameObjectWithTag("ClientServer").GetComponent <ClientServer>();
     clientServer.Init(nick);
     player = GameObject.FindGameObjectWithTag("Player");
 }