Пример #1
0
    public void Show(Vector3 initialPosition)
    {
        StopAllCoroutines();

        HitPoints = BubblesToReachBottom;
        RendererGo.SetActive(true);

        Slide(initialPosition);
    }
Пример #2
0
    private IEnumerator SlideThenHideCoroutine(Vector3 targetPos)
    {
        yield return(StartCoroutine(SlideCoroutine(targetPos)));

        RendererGo.SetActive(false);
    }