Ejemplo n.º 1
0
    public void CreateDamageNumber(string number, Transform location)
    {
        DamageNumber instance = Instantiate(damageNumber);

        instance.transform.SetParent(canvas.transform, false);
        instance.setLocation(location);
        instance.SetText(number);
    }