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

            if (NetworkHandler.Mode == NetworkMode.Server)
            {
                Send(arguments);
            }
        }