Example #1
0
    public void Show(Vector3 initialPosition)
    {
        StopAllCoroutines();

        HitPoints = BubblesToReachBottom;
        RendererGo.SetActive(true);

        Slide(initialPosition);
    }
Example #2
0
    private IEnumerator SlideThenHideCoroutine(Vector3 targetPos)
    {
        yield return(StartCoroutine(SlideCoroutine(targetPos)));

        RendererGo.SetActive(false);
    }