public void StartFireSuppression(NitroxId id) { GameObject cyclops = NitroxIdentifier.RequireObjectFrom(id); CyclopsFireSuppressionSystemButton fireSuppButton = cyclops.RequireComponentInChildren <CyclopsFireSuppressionSystemButton>(); using (packetSender.Suppress <CyclopsFireSuppression>()) { // Infos from SubFire.StartSystem fireSuppButton.subFire.StartCoroutine(StartFireSuppressionSystem(fireSuppButton.subFire)); fireSuppButton.StartCooldown(); } }
public override void Process(CyclopsFireSuppression sonarPacket) { GameObject cyclops = GuidHelper.RequireObjectFrom(sonarPacket.Guid); CyclopsFireSuppressionSystemButton fireSuppButton = cyclops.RequireComponentInChildren <CyclopsFireSuppressionSystemButton>(); using (packetSender.Suppress <CyclopsFireSuppression>()) { // Infos from SubFire.StartSystem fireSuppButton.subFire.StartCoroutine(StartSystem(fireSuppButton.subFire)); fireSuppButton.StartCooldown(); } }