void Start()
 {
     net = NetworkManager.singleton as ClientNetworkMgr;
     if (net == null)
     {
         Debug.LogError("Net is Null");
     }
 }
    void RpcUpdateHostIP(string hostIP)
    {
        ClientNetworkMgr net = GameObject.FindObjectOfType <ClientNetworkMgr>();

        if (net != null)
        {
            net.hostIP = hostIP;
        }

        //每次更新host时将服务端姿态置为初始值
        CmdUpdateCarPose(Quaternion.identity, Vector3.zero, "xxx");
    }
    void Start()
    {
        foreach (string s in Input.GetJoystickNames())
        {
            AddDebugInfo(s);
        }

        if (!GameObject.Find("NetworkManager"))
        {
            GameObject netObj = Instantiate(netManagerPrefab) as GameObject;
            netObj.name = "NetworkManager";
            net         = netObj.GetComponent <ClientNetworkMgr>();
        }
        //
        SetPage(PageType.Select);
    }
    void Start()
    {
        btnUse245Server.onClick.AddListener(Use245Seaver);
        txtInfo.text = "正在连接...";

        if (!GameObject.Find("NetworkManager"))
        {
            GameObject netObj = GameObject.Instantiate(netManagerPrefab) as GameObject;
            netObj.name = "NetworkManager";
            net         = netObj.GetComponent <ClientNetworkMgr>();
        }
        else
        {
            isReadyForPlay = true;
            txtInfo.text   = "";
            btnUse245Server.gameObject.SetActive(false);
        }
    }