Exemple #1
0
    //Get status of all devices
    public void StatusCheck()
    {
        string flashlightStatus = "Flashlight Status: " + flashlight.GetStatus() + "\nCharge: " + flashlight.GetCharge();
        string trackerStatus    = "Tracker Status: " + tracker.GetStatus() + "\nCharge: " + tracker.GetCharge();
        string radioStatus      = "Radio Status: " + radio.GetStatus() + "\nCharge: " + radio.GetCharge();

        flashlightTxt.text = flashlightStatus;
        trackerTxt.text    = trackerStatus;
        radioTxt.text      = radioStatus;
    }