public override float Run() { MainCamera mainCamera = KickStarter.mainCamera; mainCamera.RemoveSplitScreen(); if (turnOff || runtimeCam1 == null || runtimeCam2 == null) { return(0f); } if (orientation == CameraSplitOrientation.Overlay) { mainCamera.SetBoxOverlay(runtimeCam1, runtimeCam2, overlayRect); } else { if (splitAmount1 + splitAmount2 > 1f) { splitAmount2 = 1f - splitAmount1; } if (mainIsTopLeft) { mainCamera.SetSplitScreen(runtimeCam1, runtimeCam2, orientation, mainIsTopLeft, splitAmount1, splitAmount2); } else { mainCamera.SetSplitScreen(runtimeCam2, runtimeCam1, orientation, mainIsTopLeft, splitAmount1, splitAmount2); } } return(0f); }