public override bool OnEnter()
 {
     CurrArgs.m_bValue1 = 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 (!actionCtl.superArmor)
     {
         CurrArgs.m_bValue1 = true;
         if (CurrArgs.m_iBufferUI == 1)
         {
             freeezBuff = Resources.Load("MonsterResources/MonsterBuffs/MonsterFreezeBuff") as GameObject;
             temp       = GameObject.Instantiate(freeezBuff, new Vector3(-100, 100, 0) + new Vector3(0, 0, -0.01f), Quaternion.identity) as GameObject;
             temp.transform.localScale = new Vector3(m_BufferCrl.buffScale, m_BufferCrl.buffScale, m_BufferCrl.buffScale);
             temp.transform.position   = CurrCtrl.GetComponent <MonsterMessage> ().monsterFoot.transform.position + new Vector3(0f, 0f, -0.01f);
             temp.transform.SetParent(CurrCtrl.GetComponent <MonsterMessage> ().monsterFoot.transform);
         }
         actionCtl.EnterFreeze();
     }
     return(true);
 }