예제 #1
0
    public IEnumerator InvokeMethod(float interval, int invokeCount)
    {
        softTutorialText.transform.GetChild(0).gameObject.SetActive(true);
        for (int i = 0; i < invokeCount; ++i)
        {
            CountdownSoft(invokeCount - i);
            yield return(new WaitForSeconds(interval));
        }
        softTutorialText.transform.GetChild(0).gameObject.SetActive(false);

        if (isSoft)
        {
            if (countdownTimer != null)
            {
                countdownTimer.GetComponent <Countdown>().StartCountdown();
            }

            if (mainCamera != null)
            {
                mainCamera.GetComponent <CameraRotate>().spin = true;
            }

            if (softTutorialText != null)
            {
                softTutorialText.SetActive(false);
            }

            /*AudioSource[] aSources = GameObject.Find("Sound Effects").GetComponents<AudioSource>();
             * if (aSources != null)
             * {
             *  AudioSource background = aSources[4];
             *  if (background != null)
             *  {
             *      background.Play();
             *  }
             * }*/

            eventPlayer.ResumePlaying();

            isSoft = false;
        }
    }