private static void OnLoadCompleted(EventArgs args) { if (ObjectManager.Player.ChampionName == "Cassiopeia") { Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, ObjectManager.Player.ChampionName + " injected Ceviri TekinTR !", Color.DeepSkyBlue)); Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, "Addon by: Mr Articuno", Color.Purple)); new Cassiopeia().Init(); Igniter.Init(); } else { Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, ObjectManager.Player.ChampionName + " is Not Supported", Color.Red)); } }
private static void OnLoadCompleted(EventArgs args) { try { var handle = Activator.CreateInstance(null, "OneForWeek.Plugin.Hero." + ObjectManager.Player.ChampionName); Champion = (PluginModel)handle.Unwrap(); Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, ObjectManager.Player.ChampionName + " injected !", Color.DeepSkyBlue)); Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, "Addon by: MrArticuno", Color.Purple)); Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, "Jinx is in BETA !", Color.Purple)); Igniter.Init(); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); Notification.DrawNotification(new NotificationModel(Game.Time, 20f, 1f, ObjectManager.Player.ChampionName + " is Not Supported", Color.Red)); } }