Exemplo n.º 1
0
        //---------------------------------------------------------------------
        public void update(float elapsed_tm)
        {
            switch (mOutFishState)
            {
            case OutFishState.None:
                break;

            case OutFishState.Normal:
                _checkAndCreateFishCrowd(elapsed_tm);
                break;

            case OutFishState.WaitingFormation:
                mOutFamtionDelay -= elapsed_tm;
                if (mOutFamtionDelay < 0)
                {
                    generateFormation(mParticleSystemName);
                    mOutFishState = OutFishState.Formation;
                }
                break;

            case OutFishState.Formation:
                if (mBaseFishLordMgr.getParticleSystemCount() <= 0)
                {
                    mOutFishState = OutFishState.Normal;
                }
                break;
            }
        }