You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
467 B

using System;
namespace ET
{
public static class Entry
{
public static void Start()
{
try
{
CodeLoader.Instance.Update += Game.Update;
CodeLoader.Instance.LateUpdate += Game.LateUpdate;
CodeLoader.Instance.OnApplicationQuit += Game.Close;
Game.EventSystem.Add(CodeLoader.Instance.GetHotfixTypes());
Game.EventSystem.Publish(new EventType.AppStart());
}
catch (Exception e)
{
Log.Error(e);
}
}
}
}