public LongPressView() { this.cams = Service.Get <CameraManager>(); this.time = Service.Get <ViewTimeEngine>(); this.uxc = Service.Get <UXController>(); this.preFadeDuration = GameConstants.EDIT_LONG_PRESS_PRE_FADE; this.fadeDuration = GameConstants.EDIT_LONG_PRESS_FADE; this.longPress = this.uxc.MiscElementsManager.CreateLongPress("LongPress", this.uxc.WorldAnchor); this.longPress.Visible = false; this.longPressFill = this.uxc.MiscElementsManager.GetChildElementSprite(this.longPress, "SpriteLongPressFill"); this.longPressBkg = this.uxc.MiscElementsManager.GetChildElementSprite(this.longPress, "SpriteLongPressBkg"); this.registered = false; }
private void OnGarbageCollectedStart() { base.enabled = true; Application.runInBackground = true; Application.targetFrameRate = 30; Service.Engine = this; this.InitLogger(); long monoUsedSizeLong = Profiler.GetMonoUsedSizeLong(); long monoHeapSizeLong = Profiler.GetMonoHeapSizeLong(); Service.Logger.DebugFormat("Managed memory on load: {0:F1}MB/{1:F1}MB", new object[] { (float)monoUsedSizeLong / 1048576f, (float)monoHeapSizeLong / 1048576f }); this.reloadWait = false; this.inputManager = new TouchManager(); this.simTimeEngine = new SimTimeEngine(33u); this.viewTimeEngine = new ViewTimeEngine(0.033f); new MainController(); }
private void OnGarbageCollectedStart() { this.CleanupBundles(); Application.runInBackground = true; Application.targetFrameRate = 30; Service.Set <Engine>(this); this.InitLogger(); uint monoUsedSize = Profiler.GetMonoUsedSize(); uint monoHeapSize = Profiler.GetMonoHeapSize(); Service.Get <StaRTSLogger>().DebugFormat("Managed memory on load: {0:F1}MB/{1:F1}MB", new object[] { monoUsedSize / 1048576f, monoHeapSize / 1048576f }); this.reloadWait = false; this.inputManager = new InputManager(); this.simTimeEngine = new SimTimeEngine(33u); this.viewTimeEngine = new ViewTimeEngine(0.033f); new MainController(); base.enabled = true; }