TapBootstrap-Unity/Runtime/Internal/Init/BootstrapInitTask.cs

17 lines
540 B
C#
Raw Normal View History

2023-10-19 19:10:18 +08:00
using LeanCloud;
using LeanCloud.Storage;
using TapTap.Common;
using TapTap.Common.Internal.Init;
namespace TapTap.Bootstrap.Internal.Init {
public class BootstrapInitTask : IInitTask {
public int Order => 12;
public void Init(TapConfig config) {
LCApplication.Initialize(config.ClientID, config.ClientToken, config.ServerURL);
LCObject.RegisterSubclass("_User", () => new TDSUser());
LCObject.RegisterSubclass(TapGameSave.CLASS_NAME, () => new TapGameSave());
}
}
}