예제 #1
0
        async void Start()
        {
            await new WaitForSeconds(1);
            bool active = await RestHelper.ConnectionTest();

            // Hide the loading circle
            animatedLoadingCircle.SetActive(false);

            // Enable the White Circle Image / Mask
            GetComponent <Image>().enabled = true;

            // Enable the result image
            display.enabled = true;

            // Set the result image
            display.sprite = (active == true ? successfulGraphic : failedGraphic);

            // Enable the built-in button to restart
            GetComponent <Button>().enabled = true;
        }