public void SendSingleDetails(int i) { pObject = new SingPlant { singName = transform.parent.parent.name.Split('|')[0], singId = int.Parse(transform.parent.parent.name.Split('|')[1]), param1 = transform.parent.GetChild(1).GetChild(0).GetComponent <InputField>().text, param2 = transform.parent.GetChild(2).GetChild(0).GetComponent <InputField>().text, param3 = transform.parent.GetChild(3).GetChild(0).GetComponent <InputField>().text, showPlant = i, header = "pds" }; //tCP.objClient = pObject; tCP = GameObject.Find("NetworkTransfer").GetComponent <TCPClientReceive>(); tCP.SocketSendByte(pObject); //tCP.SendMessage(JsonUtility.ToJson(pObject)); transform.parent.gameObject.SetActive(false); }
// Start is called before the first frame update void Start() { tCP = GameObject.Find("NetworkTransfer").GetComponent <TCPClientReceive>(); spaceId = GameObject.FindGameObjectWithTag("SpaceNameObject").GetComponent <ImageTargetBehaviour>().TrackableName; }
// Start is called before the first frame update void Start() { mpUI = GameObject.FindGameObjectWithTag("SceneManager").GetComponent <MultiplyUi>(); tCP = GameObject.Find("NetworkTransfer").GetComponent <TCPClientReceive>(); }
public void Start() { plantName = transform.parent.GetComponent <ImageTargetBehaviour>().TrackableName; mpUI = GameObject.FindGameObjectWithTag("SceneManager").GetComponent <MultiplyUi>(); tCP = GameObject.Find("NetworkTransfer").GetComponent <TCPClientReceive>(); }
// Use this for initialization void Start() { //InitSocket(); tCP = GameObject.Find("NetworkTransfer").GetComponent <TCPClientReceive>(); }