Exemplo n.º 1
0
        private void UnbindPlayer()
        {
            if (player != null)
            {
                player.OnVideoResize -= OnResize;

                player = null;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Bind player instance firstly, otherwise some events will be missing.
 /// </summary>
 private void BindPlayer()
 {
     player = gameObject.GetComponent <BitVideoPlayer>();
     player.OnVideoResize += OnResize;
 }