Skip to content

Commit

Permalink
Revert back and re-do Init fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Miner28 committed Dec 8, 2024
1 parent b11e712 commit 4654c15
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Miner28.UdonUtils.Network
{
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] [DefaultExecutionOrder(Int32.MinValue + 1000000)]
public class NetworkManager : UdonSharpBehaviour
{
const int EventProcessingSpeed = 25;
Expand Down Expand Up @@ -34,7 +34,7 @@ public class NetworkManager : UdonSharpBehaviour
bool _runOnce;


void OnEnable()
void Start()
{
if (_runOnce) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,18 +222,21 @@ private const byte

internal void SetupCaller()
{
if (_startRun) return;
_debug = networkManager.debug;
_startRun = true;
Log("Setting up Caller");

SetupCaller();
networkManager.BackwardsRegister(this);

_methodInfos = networkManager.methodInfos;
_methodInfosKeys = networkManager.methodInfosKeys;
}
private void OnEnable()

void Start()
{
if (_startRun) return;
_startRun = true;
_debug = networkManager.debug;
SetupCaller();
networkManager.BackwardsRegister(this);
}

public override void OnPreSerialization()
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.8",
"version": "3.2.12",
"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 4654c15

Please sign in to comment.