private void OnTriggerEnter(Collider other) { if (other.transform == Target.transform) { if (Freeze) { Target.GetComponent <IFreezable>().Freeze(Value); } Target.GetComponent <IDamagable>().TakeDamage(Damage, Sender, Crit); if (SkillArrow) { //Rigidbody rb = Target.GetComponent<Rigidbody>(); //StartCoroutine(npc.PushBackEnd()); npc.StartPushBack(Value); //Vector3 moveDirection = Target.transform.position - Sender.transform.position; //Target.transform.position += moveDirection * 1; } TargetDied(null); } }