Пример #1
0
    public IEnumerator UnPause()
    {
        HardDrop.interactable            = false;
        HardDrop2.interactable           = false;
        settingsButton.self.image.sprite = settingsButton.settingsSprite;
        settingsButton.self.interactable = false;
        countDown.text = string.Empty;

        yield return(new WaitForSecondsRealtime(1));

        countDown.text = "3";

        yield return(new WaitForSecondsRealtime(1));

        countDown.text = "2";

        yield return(new WaitForSecondsRealtime(1));

        countDown.text = "1";

        yield return(new WaitForSecondsRealtime(1));

        countDown.text    = "Go!";
        UIControl.canDrop = true;
        pauseButton.UpdateButton();
        settingsButton.UpdateButton();
        HardDrop.interactable  = true;
        HardDrop2.interactable = true;

        yield return(new WaitForSecondsRealtime(0.5f));

        countDown.text = string.Empty;
    }