public void SetState(MonsterStateEnum state)
    {
        if (actionState == MonsterStateEnum.Normal)
        {
            if (behaviourTree)
            {
                behaviourTree.PauseBehaviour();
            }
        }

        actionState = state;

        if (actionState == MonsterStateEnum.Normal)
        {
            if (behaviourTree)
            {
                behaviourTree.StartBehaviour();
            }
        }

        if (actionState != MonsterStateEnum.HitReact)
        {
            hitReactType = -1;
        }

        if (actionState == MonsterStateEnum.Dead)
        {
            destoryTime = Time.time + DyingTime;
        }
    }
        /// <summary>
        /// 暂停运行行为树。
        /// </summary>
        /// <exception cref="NullReferenceException"></exception>
        public void PauseBehaviour()
        {
            if (!btOwner)
            {
                throw new NullReferenceException("NodeCanvas behaviour tree is not assigned.");
            }

            btOwner.PauseBehaviour();
        }