public override void OnCreated(ILoading loading) { SelfDestruct.DestructOldInstances(this); base.OnCreated(loading); ToolMode = TrafficManagerMode.None; Detours = new List <Detour>(); DetourInited = false; CustomPathManager = new CustomPathManager(); }
public override void OnCreated(ILoading loading) { SelfDestruct.DestructOldInstances(this); base.OnCreated(loading); Log.Message("Setting ToolMode"); ToolMode = TrafficManagerMode.None; Log.Message("Init RevertMethods"); OriginalMethods = new MethodInfo[7]; CustomMethods = new MethodInfo[7]; CustomRedirects = new RedirectCallsState[7]; Log.Message("Setting Despawn to False"); DespawnEnabled = true; Log.Message("Init DetourInited"); DetourInited = false; Log.Message("Init Custom PathManager"); CustomPathManager = new CustomPathManager(); }