private void EnableMoveAgent(GameObject obj, bool isEnable)
 {
     try {
         EntityViewModel npcView = (EntityViewModel)EntityController.Instance.GetEntityView(obj);
         if (npcView != null)
         {
             if (isEnable)
             {
                 //贴地
                 var pos = obj.transform.position;
                 TriggerUtil.GetRayCastPosInNavMesh(pos + UnityEngine.Vector3.up * 500, pos + UnityEngine.Vector3.down * 500, ref pos);
                 obj.transform.position = pos;
             }
             npcView.SetMoveAgentEnable(isEnable);
         }
     } catch (Exception ex) {
         LogSystem.Warn("SetMoveAgentEnable exception:{0}", ex.Message);
     }
 }