Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        a = new ReadFile();
        //a.readFile();
        //  hands = a.getHands();
        //   LittleFinger lf = gameObject.GetComponentInChildren<LittleFinger>();
        GameObject   lf       = GameObject.Find("TestLines");
        LittleFinger lfScript = lf.GetComponent <LittleFinger>();

        lfScript.Set(a.getPoints("mp_lf"), a.getPoints("mn_lf"), a.getPoints("ppn_lf"), a.getPoints("ipn_lf"), a.getPoints("dpn_lf"));


        //  Debug.Log(hands.ElementAt(0).ElementAt(0));

        //Debug.Log(first.transform.position);
        //  pos = first.transform.position;
        // pos2 = second.transform.position;
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        PipeClient client = new PipeClient();

        client.StartClient();

        a = new ReadFile();
        a.readFile(client.File_name);
        //a.readFile(@"E:\TestForUnity.csv");

        isPaused  = false;
        isStopped = false;

        lfScript = this.GetComponentInChildren <LittleFinger>();
        lfScript.Set(a.getPoints("mp_lf"), a.getPoints("mn_lf"), a.getPoints("ppn_lf"), a.getPoints("ipn_lf"), a.getPoints("dpn_lf"));

        mfScript = this.GetComponentInChildren <MiddleFinger>();
        mfScript.Set(a.getPoints("mp_mf"), a.getPoints("mn_mf"), a.getPoints("ppn_mf"), a.getPoints("ipn_mf"), a.getPoints("dpn_mf"));

        rfScript = this.GetComponentInChildren <RingFinger>();
        rfScript.Set(a.getPoints("mp_rf"), a.getPoints("mn_rf"), a.getPoints("ppn_rf"), a.getPoints("ipn_rf"), a.getPoints("dpn_rf"));

        ifScript = this.GetComponentInChildren <IndexFinger>();
        ifScript.Set(a.getPoints("mp_if"), a.getPoints("mn_if"), a.getPoints("ppn_if"), a.getPoints("ipn_if"), a.getPoints("dpn_if"));

        tScript = this.GetComponentInChildren <Thumb>();
        tScript.Set(a.getPoints("mn_t"), a.getPoints("ppn_t"), a.getPoints("ipn_t"), a.getPoints("dpn_t"));

        pScript = this.GetComponentInChildren <Palm>();
        pScript.Set(a.getPoints("mp_rf"), a.getPoints("mn_rf"), a.getPoints("mp_mf"), a.getPoints("mn_mf"));

        //lfScript.client = client;

        tScript.setNextFrame(nextFrame);
        lfScript.setNextFrame(nextFrame);
        mfScript.setNextFrame(nextFrame);
        rfScript.setNextFrame(nextFrame);
        ifScript.setNextFrame(nextFrame);
        pScript.setNextFrame(nextFrame);
    }