Beispiel #1
0
    public void UpdateField()
    {
        P2PController c = GameObject.FindObjectOfType <P2PController>();

        if (c != null)
        {
            c.SetTargetIp(GetComponent <InputField>().text);
        }

        MyNetworkManager m = GameObject.FindObjectOfType <MyNetworkManager>();

        if (m != null)
        {
            m.targetIp = GetComponent <InputField>().text;
        }
    }
Beispiel #2
0
    public void UpdateField()
    {
        P2PController c = GameObject.FindObjectOfType <P2PController>();

        c.SetTargetIp(GetComponent <InputField>().text);
    }