예제 #1
0
    IEnumerator FlashCr(int index)
    {
        // Disable buttons
        changeColorButton.interactable = false;
        showOffButton.interactable     = false;
        showOff2Button.interactable    = false;
        Debug.Log("Showing Off");
        try
        {
            die.Flash(index);
            Debug.Log("Waiting");
            yield return(new WaitForSeconds(2.0f));
        }
        finally
        {
        }

        Debug.Log("Resetting Buttons");
        changeColorButton.interactable = true;
        showOffButton.interactable     = true;
        showOff2Button.interactable    = true;
    }