예제 #1
0
        private static void Main()
        {
            Events.OnLoad += (sender, args) =>
            {
                if (ObjectManager.LocalHero.ClassID != ClassID.CDOTA_Unit_Hero_ArcWarden)
                    return;
                MyLittleCore = new Core();

            };
            Events.OnClose += (sender, args) =>
            {
                try
                {
                    Core.Menu.RemoveFromMainMenu();
                    MyLittleCore.UnLink();
                }
                catch (Exception)
                {
                    // ignored
                }
            };
        }