Ejemplo n.º 1
0
    private void HideTips(CanvasGroup tipCanvasGroup)
    {
        tipCanvasGroup.alpha = 1;
        DOTween.Kill(tipCanvasGroup);
        Sequence sequence = tipCanvasGroup.DOSequence();

        sequence.Append(tipCanvasGroup.DOFade(0, 2.0f));
    }
Ejemplo n.º 2
0
    private void ShowTips(CanvasGroup tipCanvasGroup)
    {
        tipCanvasGroup.alpha = 0;
        DOTween.Kill(tipCanvasGroup);
        Sequence sequence = tipCanvasGroup.DOSequence();

        sequence.Append(tipCanvasGroup.DOFade(1, 2.0f));

        if (transform.gameObject.name == "Wall-Right")
        {
            HideTips(tips);
        }
    }