示例#1
0
        // Start is called before the first frame update
        void Start()
        {
            ip   = GameObject.Find("IP").GetComponent <InputField>();
            port = GameObject.Find("Port").GetComponent <InputField>();

            pc = GameObject.Find("ClientManager").GetComponent <PhoneClient>();
        }
 // Start is called before the first frame update
 void Start()
 {
     touchStatus = status.Free;
     pc          = GameObject.Find("ClientManager").GetComponent <PhoneClient>();
 }
 private void Start()
 {
     pc     = GameObject.Find("ClientManager").GetComponent <PhoneClient>();
     button = gameObject.GetComponent <Button>();
     button.onClick.AddListener(sendInfo);
 }