public void BlendToAnimation(string animation_name)
    {
        if (active_animation_name == animation_name)
        {
            return;
        }

        active_animation_name = String.Copy(animation_name);
        creature_manager.SetAutoBlending(true);
        creature_manager.AutoBlendTo(animation_name, blend_rate);
    }
Exemple #2
0
    public void BlendToAnimation(string animation_name)
    {
        if (active_animation_name == animation_name)
        {
            return;
        }

        active_animation_name = animation_name;
        creature_manager.SetAutoBlending(true);
        creature_manager.AutoBlendTo(animation_name, blend_rate);

        if (game_controller)
        {
            game_controller.AnimClipChangeEvent();
        }
    }