Exemplo n.º 1
0
 public void UpdateTime()
 {
     CreatureRenderModule.UpdateTime(
         creature_manager,
         game_controller,
         active_animation_name,
         local_time_scale,
         region_offsets_z,
         should_loop,
         ref local_time);
 }
Exemplo n.º 2
0
    public void UpdateTime()
    {
        float real_time_scale = Application.isPlaying ? local_time_scale : 0.0f;

        if (custom_speeds.Count > 0)
        {
            var cur_animation_name = creature_manager.GetActiveAnimationName();
            if (custom_speeds.ContainsKey(cur_animation_name))
            {
                real_time_scale = Application.isPlaying ? custom_speeds[cur_animation_name] : 0.0f;
            }
        }

        CreatureRenderModule.UpdateTime(
            creature_manager,
            game_controller,
            creature_asset.creature_meta_data,
            active_animation_name,
            real_time_scale,
            region_offsets_z,
            should_loop,
            ref local_time);
    }