Exemplo n.º 1
0
 public override void dispose()
 {
     VideoPlayerManager.instance.isRotation = false;
     EventBus.unSubscribe(EventBusConstant.pauseVideoPlayer, this._pauseVideoPlayerSubId);
     EventBus.unSubscribe(EventBusConstant.fullScreen, this._fullScreenSubId);
     EventBus.unSubscribe(EventBusConstant.changeOrientation, this._changeOrientationSubId);
     this._player.targetTexture.Release();
     this._player.Stop();
     VideoPlayerManager.destroyPlayer();
     this.m_Timer?.cancel();
     this.m_Timer?.Dispose();
     base.dispose();
 }