/// <summary>
    /// 激活行为.
    /// </summary>
    public override void Active()
    {
        //FxAsset assert = new FxAsset();
        //assert.init(URLUtil.GetResourceLibPath() + buffInfor.BuffPath);

        base.Active();
        KParams kParams = KConfigFileManager.GetInstance().GetParams();

        outColor         = KingSoftCommonFunction.StringToColor(kParams.MonsterOutColor);
        totalTime        = kParams.MonsterOutTime;
        MonsterOutHeight = kParams.MonsterOutHeight;
        if (kParams.MonsterOutFx.Length > 0)
        {
            assert.init(URLUtil.GetResourceLibPath() + kParams.MonsterOutFx);
            GameObject fx = assert.CloneObj();
            if (null != fx)
            {
                fx.transform.position   = hero.Position;
                fx.transform.localScale = hero.transform.localScale * kParams.MonsterOutFxScale;
                DestoryObject d = fx.AddComponent <DestoryObject>();
                d.delta = 1f;
            }
        }
        hero.DispatchEvent(ControllerCommand.CrossFadeAnimation, "idle1", AMIN_MODEL.ONCE, false);
        isFinish = false;
        hero.DispatchEvent(ControllerCommand.CLEAR_BUFF);
        beginTime = Time.realtimeSinceStartup;
    }
        public static void InitBuff(ushort wBuffID)
        {
            if (globalBuffsTemps.ContainsKey(wBuffID))
            {
                return;
            }
            KBuff   buffInfor = KConfigFileManager.GetInstance().buffs.getData(wBuffID.ToString());
            FxAsset assert    = new FxAsset();

            assert.init(URLUtil.GetResourceLibPath() + buffInfor.BuffPath);
            BuffInfor infor = new BuffInfor();

            infor.infor               = buffInfor;
            infor.assert              = assert;
            infor.bindPoints          = buffInfor.BindPoint.Split(';');
            globalBuffsTemps[wBuffID] = infor;
        }