예제 #1
0
    void HealTarget(BattleActor target, Skill skill)
    {
        Debug.Log("Healing Target " + target.Name + " with " + skill.Name);
        // Play hit sound effect
        //AudioManager.Instance.Play(SFX);

        // Deal damage and Spawn Damage Effect and FCT text
        Debug.Log("[Skill Behaviour] Heal: " + skill.GetDamage());
        target.Heal(skill.GetDamage(), CanResurrect);

        if (target is BossActor)
        {
            SpawnEffect((BossActor)target);
            //skill.FCTInterface.SpawnText(skill.GetDamage().ToString("0"), Camera.main.WorldToScreenPoint(((BossActor) target).handler.transform.position - FTCOffset), 92f);
        }
        else if (target is HeroActor)
        {
            SpawnEffect((HeroActor)target);
            //skill.FCTInterface.SpawnText(skill.GetDamage().ToString("0"), Camera.main.WorldToScreenPoint(((HeroActor) target).handler.transform.position - FTCOffset), 92f);
        }
    }