예제 #1
0
    public static void SpawnDamageText(Character character, uint amount, bool isHealing)
    {
        DamageText text = Instantiate(staticTextPrefab, canvas) as DamageText;

        text.SetCamera(staticMainCamera);
        text.SetCharacter(character);
        text.SetValue(amount);
        if (isHealing)
        {
            text.IsHealing();
        }
        else
        {
            character.AnimateCharacter(Character.CharacterPoses.Damaged);
        }
    }