public static void Grabbed(GameObject gameObject, TechType tech, Vector3 position) { var res = new ClientItemGrabbed(); res.itemGuid = GuidHelper.Get(gameObject); res.tech = tech; res.position = position; Multiplayer.main.Send(res); }
private void Process(ClientItemGrabbed msg) { var gameObject = GuidHelper.Find(msg.itemGuid); if (gameObject != null) { UnityEngine.Object.Destroy(gameObject); } }
private void Process(Client client, ClientItemGrabbed msg) { state.history.items.Remove(msg.itemGuid); SendToAll(client.peer, msg); }