コード例 #1
0
ファイル: MoviePlayer.cs プロジェクト: yuka800/UnityLearning
        public void Stop()
        {
            Player?.Stop();
            playCTS?.Cancel();
            playCTS?.Dispose();
            playCTS = null;

            videoLoader?.GetLoadedOrNull(playedMovieName)?.Release(this);
            playedMovieName = null;

            OnMovieStop?.Invoke();
        }
コード例 #2
0
        public virtual void Stop()
        {
            if (Player)
            {
                Player.Stop();
            }
            playCTS?.Cancel();
            playCTS?.Dispose();
            playCTS = null;

            videoLoader?.Release(playedMovieName, this);
            playedMovieName = null;

            OnMovieStop?.Invoke();
        }