Make CustomRpc api more generic, PlayerColor enum, bug fixes in RegisterInIl2CppAttribute

This commit is contained in:
js6pak committed 2021-02-03 15:06:04 +01:00
1 parent 0cd79f9162
commit e90f6bcdbc
12 files changed
+230 -84

No files matched your search

+2 -2
View File
@@ -38,8 +38,8 @@ namespace Reactor.Example
if (Input.GetKeyDown(KeyCode.F3) && AmongUsClient.Instance && PlayerControl.LocalPlayer)
{
Plugin.Log.LogWarning("Sending example rpc");
PlayerControl.LocalPlayer.Send<ExampleRpc>(new ExampleRpc.Data("Cześć :)"));
PlayerControl.LocalPlayer.SendTo<ExampleRpc>(AmongUsClient.Instance.HostId, new ExampleRpc.Data("host :O"));
Rpc<ExampleRpc>.Instance.Send(new ExampleRpc.Data("Cześć :)"));
Rpc<ExampleRpc>.Instance.SendTo(AmongUsClient.Instance.HostId, new ExampleRpc.Data("host :O"));
}
}
}