private static StreamingMovie.Result PlayFullScreenMovie(string url, string prefabPath) { GameObject gameObject1 = AssetManager.Load <GameObject>(!string.IsNullOrEmpty(prefabPath) ? prefabPath : "UI/FullScreenMovie"); GameObject gameObject2 = (GameObject)null; if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject1, (UnityEngine.Object)null)) { gameObject2 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)gameObject1); } FlowNode_MediaPlayerController playerController = (FlowNode_MediaPlayerController)null; FlowNode_MediaPlayerDispatchFinishEvent finishEventDispatcher = (FlowNode_MediaPlayerDispatchFinishEvent)null; if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject2, (UnityEngine.Object)null)) { playerController = (FlowNode_MediaPlayerController)gameObject2.GetComponent <FlowNode_MediaPlayerController>(); finishEventDispatcher = (FlowNode_MediaPlayerDispatchFinishEvent)gameObject2.GetComponent <FlowNode_MediaPlayerDispatchFinishEvent>(); } if (UnityEngine.Object.op_Equality((UnityEngine.Object)playerController, (UnityEngine.Object)null)) { DebugUtility.LogError("FlowNode_MediaPlayerControllerが見つかりませんでした"); } if (UnityEngine.Object.op_Equality((UnityEngine.Object)finishEventDispatcher, (UnityEngine.Object)null)) { DebugUtility.LogError("FlowNode_MediaPlayerNotifyFinishが見つかりませんでした"); } playerController.SetVolume(GameUtility.Config_MusicVolume); playerController.Load(url); return(new StreamingMovie.Result(finishEventDispatcher)); }
public Result(FlowNode_MediaPlayerDispatchFinishEvent finishEventDispatcher) { finishEventDispatcher.onEnd += new FlowNode_MediaPlayerDispatchFinishEvent.OnEnd(this.OnEnd); }