| | |
| | | public Transform MP_Down { get; protected set; }
|
| | | public Transform MP_Stun { get; protected set; }
|
| | | public Transform MP_Weapon { get; protected set; }
|
| | | public Transform MP_FollowDown { get; protected set; }
|
| | |
|
| | | public uint ClientInstID { get; protected set; }
|
| | | public uint ServerInstID { get; protected set; }
|
| | |
| | | m_PrevPos = Pos;
|
| | | }
|
| | |
|
| | | if (MP_Down)
|
| | | {
|
| | | if (MP_FollowDown)
|
| | | {
|
| | | MP_FollowDown.position = MP_Down.position;
|
| | | }
|
| | | }
|
| | |
|
| | | OnFixedUpdate();
|
| | | }
|
| | |
|
| | |
| | | m_SearchType = E_SearchType.Static;
|
| | | MoveTo(_validPos, keepDist);
|
| | | }
|
| | | // if (this is GA_Hero)
|
| | | // {
|
| | | // Debug.Log("开始寻路至点: " + destPos);
|
| | | // }
|
| | | }
|
| | |
|
| | | public void ClearPathFindTarget()
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | // if (this is GA_Hero)
|
| | | // if (this is GActorNpcFight
|
| | | // && (ServerInstID == 133 || ServerInstID == 134 || ServerInstID == 112))
|
| | | // {
|
| | | // Debug.Log("停止寻路");
|
| | | // Debug.LogFormat("{0} 停止寻路至点: ", ServerInstID);
|
| | | // }
|
| | |
|
| | | TargetActor = null;
|
| | |
| | | }
|
| | | Run();
|
| | | State = E_ActorState.AutoRun;
|
| | |
|
| | | // if (this is GActorNpcFight
|
| | | // && (ServerInstID == 133 || ServerInstID == 134 || ServerInstID == 112))
|
| | | // {
|
| | | // Debug.LogFormat("{0} 开始寻路至点: {1}", ServerInstID, position);
|
| | | // }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | MP_Down = parent;
|
| | | }
|
| | |
|
| | | if (!MP_FollowDown)
|
| | | {
|
| | | MP_FollowDown = new GameObject("Follow_Down").transform;
|
| | | MP_FollowDown.SetParent(Root);
|
| | | }
|
| | | }
|
| | |
|
| | | public static void ForceCrossFade(Animator animator, int name, float transitionDuration, int layer = 0, float normalizedTime = float.NegativeInfinity)
|