void burnPerson(PersonStatus status) { FireEffect effect = new FireEffect(); effect.initialize(fireDealer); status.ActivePower = effect; }
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; } }