예제 #1
0
    public void QueueMessage(string message, Color color)
    {
        PopupText pop = Instantiate <PopupText>(popupText, unit.transform);

        pop.SetMessage(message);
        pop.SetColor(color);
        pop.SetOffest(new Vector3(Random.Range(-50f, 50f), 250f, 0f));
        messageQueue.Enqueue(pop);
        empty = false;
    }