File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,7 @@ void Start()
2929
3030 public void OnButtonPress ( )
3131 {
32- if ( targetVideoPlayer . CanControlVideoPlayer ( ) )
33- {
34- targetVideoPlayer . TakeOwnership ( ) ;
35- targetVideoPlayer . PlayVideo ( url ) ;
36- }
32+ targetVideoPlayer . PlayVideo ( url ) ;
3733 }
3834
3935 public void OnUSharpVideoLockChange ( )
Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ void Start()
164164 if ( _registeredControlHandlers == null )
165165 _registeredControlHandlers = new VideoControlHandler [ 0 ] ;
166166
167- _registeredCallbackReceivers = new UdonSharpBehaviour [ 0 ] ;
167+ if ( _registeredCallbackReceivers == null )
168+ _registeredCallbackReceivers = new UdonSharpBehaviour [ 0 ] ;
168169
169170 if ( Networking . IsOwner ( gameObject ) )
170171 {
You can’t perform that action at this time.
0 commit comments