protected override void DoSomething()
 {
     if (_client != null)
     {
         _client.SendMessageToServer("NetworkGamePrepared", "");
     }
 }
Beispiel #2
0
        public void CallAction(int id)
        {
            DebugLog("Calling " + id);
#if HAS_SERVER
            if (_isServer)
            {
                _serverController.SendMessageToAll("NetworkCallAction", JsonConvert.SerializeObject(id));
            }
            else
            {
                _clientController.SendMessageToServer("NetworkCallAction", JsonConvert.SerializeObject(id));
            }
#endif
            if (CallGenericAction != null)
            {
                CallGenericAction(id);
            }
        }
 protected override void OnClick()
 {
     base.OnClick();
     _clientController.SendMessageToServer("Test", "Lorem ipsum dolor");
 }
 protected override void DoSomething()
 {
     Debug.Log("RequestRegistry");
     _clientController.SendMessageToServer("RequestRegistry", "");
 }