Exemple #1
0
    void HandleOnAnimationComplete(JointsPoseController controller)
    {
        if (posControlle.NewPoseName == "T_Pose")
        {
            posControlle.SetPose("Stop n drop", 1.0f);
            posControlle.UpdateSpeed = 3.0f;
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "Salto")
        {
            posControlle.SetPose("From Salto", 1.0f);
            posControlle.UpdateSpeed = 3.2f;
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "From Salto")
        {
            posControlle.SetPose("Stop n drop", 1.0f);  //1
            posControlle.UpdateSpeed = 2.9f;            //4
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "Rotate left")
        {
            posControlle.SetPose("From Rotate left", 1.0f);
            posControlle.UpdateSpeed = 3.5f;
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "From Rotate left")
        {
            posControlle.SetPose("Stop n drop", 1.0f);
            posControlle.UpdateSpeed = 3.0f;            //4
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "Rotate right")
        {
            posControlle.SetPose("From Rotate right", 1.0f);
            posControlle.UpdateSpeed = 2.5f;            //3.5
            if (changeStandardPose == true)
            {
                posControlle.SetPose("Slow n hold", 1.0f);
                posControlle.UpdateSpeed = 3.0f;
            }
        }
        else if (posControlle.NewPoseName == "From Rotate right")
        {
            posControlle.SetPose("Stop n drop", 1.0f);
            posControlle.UpdateSpeed = 2.0f;            //4.0
        }

        /*if (changeStandardPose == true) {
         *      posControlle.SetPose ("Slow n hold", 1.0f);
         *      posControlle.UpdateSpeed = 2.0f;
         *      Debug.Log ("Jestem!");
         * }*/
    }