public override void Damage() { ChangeDir(); if (_audioSource) { if (MainMgr.instance.GetBackGroupState()) { _audioSource.PlayOneShot(_audioSource.clip); } } Debug.Log("英雄:攻击"); //播放动作 //延时造成伤害 anim.Play("Attack"); animState = true; Invoke(nameof(InvokeChangeState), GetAnimTime("Attack")); DOTween.Sequence().InsertCallback(0.4f, () => { targetControl.Hurt(data.Attack); }); }