void OnConnectedToServer() { Debug.Log("connected to host!"); statusMsg = "connected to host!"; searching = false; netObj = (Transform)Instantiate(samplePref, new Vector3(8, 3, 0), Quaternion.identity); networkObject = netObj.GetComponent <networkBidObject>(); networkObject.debug(); GameMaster.UserID = 1; }
void OnPlayerConnected() { Debug.Log("connected to player!"); statusMsg = "connected to player!"; searching = false; netObj = (Transform)Instantiate(samplePref, new Vector3(8, 3, 0), Quaternion.identity); networkObject = netObj.GetComponent <networkBidObject>(); networkObject.debug(); GameMaster.UserID = 2; networkObject.broadcastRandomValues(); }