Skip to content

Commit

Permalink
Merge pull request #16 from DerpyNewbie/feature/make-invoker-invoke-p…
Browse files Browse the repository at this point in the history
…ublic

Make CommonInvokerBase#Invoke non-virtual and public
  • Loading branch information
DerpyNewbie authored Nov 3, 2024
2 parents 177bb43 + 3ebaf61 commit 4d3412f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UdonSharp;
using JetBrains.Annotations;
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon.Common.Enums;
Expand All @@ -22,7 +23,8 @@ public abstract class CommonInvokerBase : UdonSharpBehaviour
[SerializeField]
protected bool isMasterOnly;

protected virtual void Invoke()
[PublicAPI]
public void Invoke()
{
if ((!Utilities.IsValid(Networking.LocalPlayer)) || (isMasterOnly && !Networking.LocalPlayer.isMaster))
return;
Expand Down

0 comments on commit 4d3412f

Please sign in to comment.