Exemplo n.º 1
0
    public TextFeedbackBehaviour GetText(BricksAbstract brickValue)
    {
        TextFeedbackBehaviour temp = textPool.Dequeue();

        temp.gameObject.SetActive(true);

        temp.SetFeedback(brickValue.GetScore.ToString(), GameConstants.GetColorFromBrick(brickValue.GetColor), brickValue.transform.position, scoreObject.transform.position);

        textPool.Enqueue(temp);

        return(temp);
    }