Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
Updated deprecated VRC methods
fixed debugger
  • Loading branch information
ChildoftheBeast authored Jul 4, 2021
1 parent 8ffaafc commit 9b221e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions MasterOnly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void MasterTogle()
timeBar.interactable = !_masterOnly;
}

public override void OnOwnershipTransferred()
public override void OnOwnershipTransferred(VRCPlayerApi _player)
{
if (Networking.IsMaster)
{
Expand All @@ -67,12 +67,12 @@ public override void OnOwnershipTransferred()
timeBar.interactable = videoPlayer.EnableTimeBar();
}
}
public override void OnPlayerLeft(VRCPlayerApi player)
public override void OnPlayerLeft(VRCPlayerApi _player)
{
if (!_isCurrentMaster && Networking.IsMaster)
{
_isCurrentMaster = true;
OnOwnershipTransferred();
OnOwnershipTransferred(_player);
}
}
public override void OnDeserialization()
Expand Down
4 changes: 2 additions & 2 deletions UdonSyncVideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public bool EnableTimeBar()
return _paused && !_isTooLong;
}

public override void OnOwnershipTransferred()
public override void OnOwnershipTransferred(VRCPlayerApi _player)
{
ownerText.text = Networking.GetOwner(gameObject).displayName;
//Debug.Log($"[UdonSyncVideoPlayer] Owner changed to {Networking.LocalPlayer.displayName}");
Expand Down Expand Up @@ -962,7 +962,7 @@ public void DebugOut(string _Str)
if (_debug)
{
DebugString = (DebugString + "\n" + LogPrefix + _Str);
Debug.Log("DebugOutText");
Debug.Log(DebugString);
if (DebugOutText != null) DebugOutText.text = DebugString;
}
}
Expand Down

0 comments on commit 9b221e6

Please sign in to comment.