public override void OnEnter() { AcquireCamera(); if (targetCamera == null || targetView == null) { Continue(); return; } ICameraController cameraController = CameraController.GetInstance(); if (fadeTexture) { cameraController.ScreenFadeTexture = fadeTexture; } else { cameraController.ScreenFadeTexture = CameraController.CreateColorTexture(fadeColor, 32, 32); } cameraController.FadeToView(targetCamera, targetView, duration, fadeOut, delegate { if (waitUntilFinished) { Continue(); } }); if (!waitUntilFinished) { Continue(); } }