private void OnTriggerEnter(Collider other) { Character target = other.GetComponent <Character>(); if (!target) { return; } if (IsValidTargetType(target) == false) { return; } GameManager.instance.ApplySkill(target, skillEffect.GetEffectResult(caster, target)); if (targetNum == TargetNum.One) { Destroy(gameObject); } }