Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void Process(ClientItemGrabbed msg)
        {
            var gameObject = GuidHelper.Find(msg.itemGuid);

            if (gameObject != null)
            {
                UnityEngine.Object.Destroy(gameObject);
            }
        }
Esempio n. 3
0
 private void Process(Client client, ClientItemGrabbed msg)
 {
     state.history.items.Remove(msg.itemGuid);
     SendToAll(client.peer, msg);
 }