コード例 #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>();
        }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     touchStatus = status.Free;
     pc          = GameObject.Find("ClientManager").GetComponent <PhoneClient>();
 }
コード例 #3
0
 private void Start()
 {
     pc     = GameObject.Find("ClientManager").GetComponent <PhoneClient>();
     button = gameObject.GetComponent <Button>();
     button.onClick.AddListener(sendInfo);
 }