public virtual void Initialize() { yesText = ""; noText = ""; summaryText = ""; bodyText = ""; result = false; yesNoClicked = false; scrollPosition = new Vector2(0, 0); minSize = new Vector2(300, 200); position = new Rect(UnityEngine.Screen.width / 3, UnityEngine.Screen.height / 3, minSize.x * 2, minSize.y * 2); logRedirector = new LogRedirector(this); }
private void Awake() { try { Log.Message($"[{nameof(ElthleadEngine)}] Initializing..."); LogRedirector.Redirect(); HarmonyPatches.Patch(); _stDataHandler = new StDataHandler(); _inputHandler = new InputHandler(); Log.Message($"[{nameof(ElthleadEngine)}] Initialized."); } catch (Exception ex) { Log.Error(ex, $"[{nameof(ElthleadEngine)}] Failed to initialize."); Environment.Exit(2); } }