예제 #1
0
    void burnPerson(PersonStatus status)
    {
        FireEffect effect = new FireEffect();

        effect.initialize(fireDealer);
        status.ActivePower = effect;
    }
예제 #2
0
    public override void deliverOnCollisionEffect(Collider other, PersonStatus status)
    {
        if (other.tag != "Person")
        {
            return;
        }

        if (other == status.collider)
        {
            return;
        }

        AnimationScript other_anim  = other.GetComponent <AnimationScript>();
        PersonStatus    otherPerson = other.GetComponent <PersonStatus>();

        if (otherPerson.ActivePower == null)
        {
            FireEffect effect = new FireEffect();
            effect.initialize(owner);
            otherPerson.ActivePower = effect;
        }
    }