예제 #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);
 }