Example #1
0
    private void AppearAnimation()
    {
        Vector2 targetPoint = transform.position;

        _canvasGroup.alpha = 0;
        float    dealy    = 0;
        AnswerUI answerUi = GetComponent <AnswerUI>();

        if (answerUi != null)
        {
            dealy = answerUi.apearDelay;
        }

        _canvasGroup.alpha = 0;
        if (!useOnlyAlpha)
        {
            transform.position += (Vector3)startingPoint;
            LeanTween.move(gameObject, targetPoint, appDuratuion).setEase(appear);
        }


        LeanTween.alphaCanvas(_canvasGroup, 1, appDuratuion).setDelay(dealy).setEase(appear);
    }
Example #2
0
 public void Hide(AnswerUI ui)
 {
     Debug.Log("Hey");
     ui.gameObject.SetActive(false);
 }