public void Clicked(MedicalCabinet medicalCabinet) { NitroxId id = NitroxEntity.GetId(medicalCabinet.gameObject); bool doorOpen = (bool)medicalCabinet.ReflectionGet("doorOpen"); MedicalCabinetClicked cabinetClicked = new MedicalCabinetClicked(id, doorOpen, medicalCabinet.hasMedKit, medicalCabinet.timeSpawnMedKit); packetSender.Send(cabinetClicked); }
public void Clicked(MedicalCabinet medicalCabinet) { string guid = GuidHelper.GetGuid(medicalCabinet.gameObject); bool doorOpen = (bool)medicalCabinet.ReflectionGet("doorOpen"); MedicalCabinetClicked cabinetClicked = new MedicalCabinetClicked(guid, doorOpen, medicalCabinet.hasMedKit, medicalCabinet.timeSpawnMedKit); packetSender.Send(cabinetClicked); }
public void Clicked(MedicalCabinet medicalCabinet) { Vector3 actionPosition = medicalCabinet.gameObject.transform.position; String guid = GuidHelper.GetGuid(medicalCabinet.gameObject); bool doorOpen = (bool)medicalCabinet.ReflectionGet("doorOpen"); MedicalCabinetClicked cabinetClicked = new MedicalCabinetClicked(packetSender.PlayerId, guid, actionPosition, doorOpen, medicalCabinet.hasMedKit, medicalCabinet.timeSpawnMedKit); packetSender.Send(cabinetClicked); }