Skip to content

Commit

Permalink
Add Prep check to PrepSend
Browse files Browse the repository at this point in the history
  • Loading branch information
Miner28 committed Dec 7, 2024
1 parent 69c7cb0 commit 1d4bb7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ internal void SetupCaller()
{
if (_startRun) return;
_startRun = true;

_debug = networkManager.debug;

Log("Setting up Caller");
_methodInfos = networkManager.methodInfos;
_methodInfosKeys = networkManager.methodInfosKeys;
_debug = networkManager.debug;
networkManager.BackwardsRegister(this);

}
Expand Down Expand Up @@ -412,6 +412,8 @@ private void SendUdonMethod(NetworkInterface target, int methodTarget, VRCPlayer

internal void _PrepareSend(uint intTarget, string method, uint scriptTarget, DataToken[] data)
{
if (!_startRun) SetupCaller();

SyncTarget target = SyncTarget.All;
SyncChannel syncChannel = (SyncChannel)(-1);
if (intTarget <= 100)
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.miner28.networkedeventcaller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.miner28.networked-event-caller",
"version": "3.2.9",
"version": "3.2.10",
"displayName": "NetworkedEventCaller",
"description": "A UdonSharp prefab that allows you to call events on other UdonBehaviours across the network with support for parameters.",
"author": {
Expand Down

0 comments on commit 1d4bb7d

Please sign in to comment.