protected virtual void LocalInvoke(params object[] arguments) { if (NetworkHandler.IsMode(Mode, NetworkMode.Host, NetworkMode.SinglePlayer)) { InvokeAction(arguments); } }
protected void Send(params object[] payload) { if (NetworkHandler.IsMode(NetworkMode.SinglePlayer) == false) { Sender(Id, payload); } }
protected override void LocalInvoke(params object[] arguments) { if (NetworkHandler.IsMode(NetworkMode.Host, NetworkMode.SinglePlayer)) { InvokeAction(arguments); } if (NetworkHandler.Mode == NetworkMode.Server) { Send(arguments); } }