コード例 #1
0
    void Update()
    {
        if (Enemy.enemyCount < 1)
        {
            if (!isUIActive)
            {
                uiDialog.dialogText.gameObject.SetActive(true);
                isUIActive = true;
            }

            if (hasNextLevel)
            {
                countdown -= Time.deltaTime;
                StartCoroutine(LoadLevel(sceneIdx));
                uiDialog.dialogText.text = "Great Job!\n" + countdown.ToString("0");
            }
            else
            {
                uiDialog.ActivateGameOver();
            }
        }
    }