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); }
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); }