Zoll Machine Simulator

This project covers the training of a person in healthcare using VR. I developed the interactive interactive and functional activities that simulates the Zoll Machine controls including attaching pads, checking BP, Temperature and Heart Rate. 

Checking health measures on screen
Checking health measures on screen
Real time clock that simulates the current USA Time 
Real time clock that simulates the current USA Time 

CODE

public class ZollManager : MonoBehaviour
{
    public TMP_Text actionNote;
    public AudioSource audioAttachPads;
    public AudioClip StandsClearSfx;
    public XRSocketInteractor Chest1Socket, Chest2Socket;

    public void AnalyzeButton()
    {
        if (!Chest1Socket.hasSelection || !Chest2Socket.hasSelection)
        {
            Invoke("AttachPads", 3);
        }
        actionNote.text = "Stands Clear";
        audioAttachPads.PlayOneShot(StandsClearSfx);
        
    }

    void AttachPads()
    {
        actionNote.text = "Attach Pads";
        audioAttachPads.Play();
    }
}
public class RealTimeClock : MonoBehaviour
{
    public TMP_Text timeDisplay;
    private TimeZoneInfo estZone;

    void Start()
    {
        estZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
    }

    void Update()
    {
        DateTime utcTime = DateTime.UtcNow;
        DateTime estTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, estZone);
        string formattedTime = estTime.ToString("HH:mm:ss");
        timeDisplay.text = formattedTime;
    }
}