예제 #1
0
    private IEnumerator StartWeather(IWeather weather, float calmTime, float weatherTime, bool needParrot = true)
    {
        if (needParrot)
        {
            parrot.Alert();
        }
        yield return(new WaitForSeconds(calmTime));

        weather.StartWeather();
        yield return(new WaitForSeconds(weatherTime));

        weather.EndWeather();
    }