﻿using JLGames.RocketDriver.Actions.Utils;
using JLGames.RocketDriver.Games.Service.Preload;
using UnityEngine;

namespace JLGames.RocketDriver.Samples.ServiceDemo.Preload
{
    public class PreloadService : AbstractPreloadService
    {
        public override void Awake()
        {
            m_SettingsName = "ServicePreloadSettings";
            m_Settings = Resources.Load<PreloadSettings>(m_SettingsName);
            m_ProgressingLen = (uint) m_Settings.BundleSize;
        }

        public override void Init()
        {
            DebugUtil.Log("PreloadService.Inited");
            base.Init();
        }
    }
}