public override bool OnEnter() { CurrArgs.m_bValue2 = false; myTree = CurrCtrl.GetComponentInChildren <BehaviorTree>(); myAni = CurrCtrl.GetChild(0).GetComponent <Animator>(); skeletonAnimation = CurrCtrl.GetChild(0).GetComponent <SkeletonAnimation>(); agent = CurrCtrl.GetComponentInChildren <PolyNavAgent>(); m_BufferCrl = CurrCtrl.GetComponentInChildren <BufferController>(); actionCtl = CurrCtrl.GetComponent <MonsterActionCtl>(); //怪物停止移动 if (CurrArgs.m_bValue1) { UseUI(); CurrArgs.m_bValue2 = true; actionCtl.EnterFetter(); } else { if (!actionCtl.superArmor) { UseUI(); CurrArgs.m_bValue2 = true; actionCtl.EnterFetter(); } } return(true); }