private void Awake() { CheckForSavePathIssue(); if (savePathState == SavePathIssue.Ok && !ReportErrorDialog.hasCrash) { AudioMixer.Create(); App.LoadScene("frontend"); } else { Canvas cmp = base.gameObject.AddComponent <Canvas>(); cmp.rectTransform().SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 500f); cmp.rectTransform().SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 500f); Camera camera = base.gameObject.AddComponent <Camera>(); camera.orthographic = true; camera.orthographicSize = 200f; camera.backgroundColor = Color.black; camera.clearFlags = CameraClearFlags.Color; camera.nearClipPlane = 0f; Debug.Log("Cannot initialize filesystem. [" + savePathState.ToString() + "]"); Localization.Initialize(true); ShowFileErrorDialogs(); } }