void Explode() { SingleHitAttack attack = Instantiate(bomb_attack); attack.SetSource(owner); attack.SetOnHit(on_hit); attack.Enable(); attack.StartCoroutine(DisableAfter(attack, active_hitbox_length)); attack.transform.position = transform.position; Destroy(gameObject); }
public override void SetCharacter(Character character) { base.SetCharacter(character); attack.SetSource(character); attack.SetOnHit(OnHit); }