1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| using UnityEngine;
| using TableConfig;
|
| public class Hurt_3 : SMB_Base
| {
| //public AttackHandler.AttackInfo attackInfo;
|
| protected override void OnEnter(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
| {
| base.OnEnter(owner, animator, stateInfo, layerIndex);
|
| // Debug.Log("-------------------- 进入hurt");
|
| if (owner.State == E_ActorState.AutoRun)
| {
| owner.StopPathFind();
| }
| }
|
| protected override void OnUpdate(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
| {
| base.OnUpdate(owner, animator, stateInfo, layerIndex);
| }
|
| protected override void OnExit(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
| {
| base.OnExit(owner, animator, stateInfo, layerIndex);
|
| //if (attackInfo.casterServerObjId != 0)
| //{
| // AttackHandler.Release(attackInfo);
| //}
| }
| }
|
|