Пример #1
0
    // Use this for initialization
    void Start()
    {
        dt        = mysqlDB.selsql("SELECT * FROM upperbodyangle");
        RSHOULDER = GameObject.FindWithTag("Right Arm");
        RELBOW    = GameObject.FindWithTag("Right Fore Arm");
        RWRIST    = GameObject.FindWithTag("Right Hand");

        LSHOULDER = GameObject.FindWithTag("Left Arm");
        LELBOW    = GameObject.FindWithTag("Left Fore Arm");
        LWRIST    = GameObject.FindWithTag("Left Hand");

        RHIP   = GameObject.FindWithTag("Right Up Leg");
        RKNEE  = GameObject.FindWithTag("Right Leg");
        RANKLE = GameObject.FindWithTag("Right Foot");

        LHIP   = GameObject.FindWithTag("Left Up Leg");
        LKNEE  = GameObject.FindWithTag("Left Leg");
        LANKLE = GameObject.FindWithTag("Left Foot");

        //SpineMotion = GameObject.FindWithTag("Spine");
        //HeadMotion = GameObject.FindWithTag("Head");
        //NeckMotion = GameObject.FindWithTag("Neck");

        //rotator = transform;
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        DataTable dt = mysqlDB.selsql("SELECT * FROM jointxyz");

        RightArmMotion     = GameObject.FindWithTag("Right Arm");
        RightForeArmMotion = GameObject.FindWithTag("Right Fore Arm");
        RightHandMotion    = GameObject.FindWithTag("Right Hand");

        LeftArmMotion     = GameObject.FindWithTag("Left Arm");
        LeftForeArmMotion = GameObject.FindWithTag("Left Fore Arm");
        LeftHandMotion    = GameObject.FindWithTag("Left Hand");

        RightUpLegMotion = GameObject.FindWithTag("Right Up Leg");
        RightLegMotion   = GameObject.FindWithTag("Right Leg");
        RightFootMotion  = GameObject.FindWithTag("Right Foot");

        LeftUpLegMotion = GameObject.FindWithTag("Left Up Leg");
        LeftLegMotion   = GameObject.FindWithTag("Left Leg");
        LeftFootMotion  = GameObject.FindWithTag("Left Foot");

        SpineMotion = GameObject.FindWithTag("Spine");
        HeadMotion  = GameObject.FindWithTag("Head");
        NeckMotion  = GameObject.FindWithTag("Neck");

        //rotator = transform;
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        // first Avatar Pose
        dbmysql   mysqlDB = new dbmysql();
        DataTable dt      = mysqlDB.selsql("SELECT * FROM elbow_angle");

        // mysqlDB.sqlcmdall ("INSERT 또는 업데이트 ");

        for (int i = 0; i < 12; i++)
        {
            Debug.Log(dt.Rows[0].ItemArray[i]);              // first pose in first row
            //dt.Rows[0].ItemArray[3]
        }
    }
Пример #4
0
    // Use this for initialization


    private void Awake()
    {
        dt = mysqlDB.selsql("SELECT * FROM relbow_angle2");
    }