简单的敌人范围触发方法 private void OnAnimatorIK(int layerIndex) { if (Vector3.Distance(transform.position, Player.transform.position) <=