Beispiel #1
0
    public static void CreateFloatingText(string text, WorldPosition position)
    {
        FloatingText instance = Instantiate(popupText);

        instance.transform.SetParent(canvas.transform, false);
        instance.transform.position = Camera.main.WorldToScreenPoint(position.ToVector3());
        instance.SetDamageText(text);
    }