Exemplo n.º 1
0
    private void animateCorrect(int _score, int combo, bool isMany)
    {
        foreach (AppleMeta selectedApple in selectList)
        {
            // 사과의 성공적 제거
            selectedApple.isAnimated = true;
        }

        Vector2         midPos   = new Vector2(selectBox.position.x + selectBox.rect.center.x, selectBox.position.y + selectBox.rect.center.y);
        TextMeshProUGUI addScore = Instantiate(addScoreText, midPos, Quaternion.identity);

        addScore.transform.SetParent(canvas.transform);
        addScore.gameObject.SetActive(true);
        AddScore AS = addScore.GetComponent <AddScore>();

        AS.print(_score, combo, isMany);
    }