private void SpeedUp(On.RoR2.OutroCutsceneController.orig_OnEnable orig, OutroCutsceneController self) { orig(self); if (flavorText != "") { self.playableDirector.time = JustFlavorTextTime.Value; } }
private static void SetupOutro(On.RoR2.OutroCutsceneController.orig_OnEnable orig, OutroCutsceneController self) { GameObject cameraRoot = GameObject.Find("CutsceneEnabledObjects"); if (cameraRoot) { Transform cameraTransform = cameraRoot.transform.Find("Camera Matcher/Menu Main Camera"); if (cameraTransform) { CameraRigController cameraRig = cameraTransform.GetComponent <CameraRigController>(); GameObject[] allGameObjects = Resources.FindObjectsOfTypeAll <GameObject>(); FixOutroCanvas(allGameObjects, cameraRig); AdjustOutroElements(allGameObjects, cameraRig); } } orig(self); }