コード例 #1
0
    public IEnumerator ReloadPuzzleCoroutine()
    {
        canPlay = false;
        GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerScript>().PlayAudio("WinPuzzle");
        yield return(new WaitForSeconds(1f));

        if (StaticVariables.currentEnergyFlower >= 10)
        {
            ReloadPuzzle();
            yield return(new WaitForSeconds(1f));

            canPlay = true;
        }
        else
        {
            gc.CloseFlowerShopPuzzleCanvas();
        }
    }