public static void CreateFloatingHealingText(string text, Transform location) { DamageFloatText instance = Instantiate(healingText); instance.transform.SetParent(canvas.transform, false); instance.SetText(text); }
public static void CreateFloatingNotEnoughEnergyText(string text, Transform location) { DamageFloatText instance = Instantiate(notEnoughEnergyText); instance.transform.SetParent(canvas.transform, false); instance.SetText(text); }