Exemplo n.º 1
0
        private void Process(ClientCyclopsHorn msg)
        {
            var horn = GuidHelper.FindComponent <CyclopsHornControl>(msg.vehicleGuid);

            if (horn == null)
            {
                return;
            }

            Utils.PlayEnvSound(horn.hornSound, horn.hornSound.gameObject.transform.position, 40f);
        }
Exemplo n.º 2
0
        public static void SendCyclopsHorn(SubRoot cyclops)
        {
            if (cyclops == null || Multiplayer.main.blocked)
            {
                return;
            }

            var res = new ClientCyclopsHorn();

            res.vehicleGuid = GuidHelper.Get(cyclops.gameObject);
            Multiplayer.main.Send(res);
        }