protected override void OnActivate() { Me = Context.Owner as Hero; AbilityFacory = Context.AbilityFactory; // Log.Debug($"Init TextureHelper"); // TextureHelper.Init(Context); Log.Debug("Load abilities"); AbilitiesInCombo = new AbilitiesInCombo(this); Log.Debug("Load config"); Config = new Config(this); Log.Debug("Load updater"); Updater = new Updater(this); Log.Debug("Load combo"); Combo = new Combo(this); Log.Debug("Load Notification Helper"); NotificationHelper = new NotificationHelper(this); Log.Debug("Load NavMeshHelper"); NavMeshHelper = new NavMeshHelper(this); Log.Warn(AbilitiesInCombo.Tornado.Duration); //var test=new DivineSuccess(); _client = new SentryClient( "https://*****:*****@sentry.io/1545139"); // _client.Client.Environment = "info"; AppDomain.CurrentDomain.UnhandledException += (sender, args) => { Console.WriteLine(args); var ex = (Exception)args.ExceptionObject; _client.CaptureAsync(ex); }; if (Game.GameMode != GameMode.Demo) { _client.Capture(new SentryEvent("invoker loaded")); } }
protected override void OnActivate() { Me = Context.Owner as Hero; AbilityFacory = Context.AbilityFactory; AbilitiesInCombo = new AbilitiesInCombo(this); Config = new Config(this); Updater = new Updater(this); Combo = new Combo(this); NotificationHelper = new NotificationHelper(this); NavMeshHelper = new NavMeshHelper(this); //var test=new DivineSuccess(); }