Exemple #1
0
 // Use this for initialization
 void Start()
 {
     this.serialConn  = new SerialConn();
     this.networkConn = (NetworkConn)GameObject.Find("NetworkConnection").GetComponent <NetworkConn> ();
     this.clientNum   = networkConn.getCleintNum();
     serialConn.broadcastData(clientNum, "shipColor");
 }