Пример #1
0
        //---------------------------------------------------------------------
        public override void start()
        {
            base.start();

            mEffectSpreadFishData = EbDataMgr.Instance.getData<TbDataEffectSpreadFish>(mEffectId);

            mScene = (CLogicScene)mMapParam["LogicScene"];
            mWaveCount = mEffectSpreadFishData.SpreadCount;
            mSourcePosition = (EbVector3)mMapParam["SourcePosition"];
            mEffectGapTime = mEffectSpreadFishData.GapTime * 0.01f; ;
            mTimeCounter = mEffectGapTime;

            mRedObjId = (int)mMapParam["RedFishObjId"];
        }
Пример #2
0
        //---------------------------------------------------------------------
        public override void start()
        {
            base.start();

            mEffectSpreadFishData = EbDataMgr.Instance.getData <TbDataEffectSpreadFish>(mEffectId);

            mScene          = (CLogicScene)mMapParam["LogicScene"];
            mWaveCount      = mEffectSpreadFishData.SpreadCount;
            mSourcePosition = (EbVector3)mMapParam["SourcePosition"];
            mEffectGapTime  = mEffectSpreadFishData.GapTime * 0.01f;;
            mTimeCounter    = mEffectGapTime;

            mRedObjId = (int)mMapParam["RedFishObjId"];
        }