Exemple #1
0
    public static void CreateFloatingHealingText(string text, Transform location)
    {
        DamageFloatText instance = Instantiate(healingText);

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

        instance.transform.SetParent(canvas.transform, false);
        instance.SetText(text);
    }