//using System; //using System.Collections; //using System.Collections.Generic; //using UnityEngine; //using UnityEngine.Events; //普通怪物 //public class Enemy : CharacterManager //{ // [Header("距离")] // public float cheseDistance = 3f; // public float attackDistance = 0.8f; // public UnityEvent OnMoveInput; // public Action OnAttack; // private Transform player; // //玩家与敌人的距离方向 // private float dis; // private Vector2 dir; // private void Awake() // { // player = GameObject.FindWithTag("Player").transform; // } // private void Update() // { // if (player == null) // return; // dis = Vector2.Distance(player.position,transform.position); // if(dis