Create a third parameter that takes the damage you are dealing. public static void CreateFloatingText (string text, Transform location, float damage)
then do something like instance.transform.localScale = Vector3.one + (Vector3.one * damage * some float that will give you the results you’re aiming for);
Thanks! but if i want to add the size instead of multiply it, how do i do that?
so instead of instance.transform.localScale = Vector3.one + (Vector3.one * amount);
maybe like: