// Start is called before the first frame update void Start() { userRoomInfo2 = GameObject.Find("UserRoomInformation2"); if (userRoomInfo2 != null) { ur = userRoomInfo2.GetComponent <UserRoomInfo2>(); roomName.text = ur.roomName; x.text = ur.x.ToString(); y.text = ur.y.ToString(); z.text = ur.z.ToString(); Destroy(userRoomInfo2); } }
// Start is called before the first frame update void Start() { ur = GameObject.Find("UserRoomInformation2").GetComponent <UserRoomInfo2>(); }