using UnityEngine; public class TestRPC : MonoBehaviour { public NetRPCHandler handler; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { handler.OnEventRecieved += r => { Debug.Log("RPC recieved with args: " + r+""); }; } [ContextMenu("Test RPC")] public void Test() { handler.FireEvent("HI!!!!!!" + ConvenientLib.GenerateRandomCharacters(6, "1234567890ABCDEF")); } }