Пример #1
0
    void GrowCloud()
    {
        SoundManager.Get().PlaySound(SoundManager.Sounds.Clouds);
        timesGrown++;
        transform.localScale *= growthFactor;
        ScaleShadow(shadowGrowthFactor);

        if (timesGrown >= clouds.Length)
        {
            GetComponent <SpriteRenderer>().sortingLayerName = "Draggable";
            clickable = gameObject.AddComponent <Clickable>();
            clickable.interactableDuring = Clickable.InteractableDuring.day;
            clickable.outLine            = outline;
            GameplayController.clickableObjects.Add(clickable);
            clickable.EndCorrectState();

            StartCoroutine(RainAndCompleteStep2());
        }
    }