예제 #1
0
    public override IEnumerator Lighting()
    {
        float t = 0f;

        for (int count = 0; count < lightingCount; count++)
        {
            LightObject.SetActive(true);

            while (t < 1f)
            {
                t += Time.deltaTime / time;

                yield return(null);
            }

            t = 0f;

            LightObject.SetActive(false);

            yield return(new WaitForSeconds(delay));
        }
    }