Пример #1
0
    void Start()
    {
        client = new TCPSocket();   //建立TCP通讯
        client.Connect2TcpServer();

        target_LF_Leg = GameObject.Find("LF_Leg");
        target_RF_Leg = GameObject.Find("RF_Leg");
        target_LB_Leg = GameObject.Find("LB_Leg");
        target_RB_Leg = GameObject.Find("RB_Leg");
        target_Body   = GameObject.Find("Body");

        lf_leg = target_LF_Leg.GetComponent <LF_Leg>();
        rf_leg = target_RF_Leg.GetComponent <RF_Leg>();
        lb_leg = target_LB_Leg.GetComponent <LB_Leg>();
        rb_leg = target_RB_Leg.GetComponent <RB_Leg>();
        body   = target_Body.GetComponent <Body>();
    }