Пример #1
0
    //-------------------------------------------------------------------------
    public void display(int score, TbDataParticle particle_data)
    {
        if (score <= 0)
        {
            return;
        }

        mSpriteNumber.create(score, 100, mPosition, mAngle + mCurrentAngle);

        mStillParticle = mScene.getParticlemanager().newParticle(particle_data.ParticlePrefabName);
        mStillParticle.setPosition(mPosition);
        mStillParticle.setLooping(false);
        mStillParticle.setLayer(mScene.getLayerAlloter().getLayer(_eLevelLayer.TurretScoreBg));

        mIsDisplay = true;
        initRotate();
    }
Пример #2
0
    //-------------------------------------------------------------------------
    void _particleNoneTarget(StillParticle still_particle, TbDataFish.ParticleDataStruct particle_data, uint et_player_rpcid)
    {
        if (particle_data.StartPoint.ParticlePointType == TbDataFish.ParticlePointStruct.ParticlePointTypeEnum.Fish)
        {
            if (particle_data.ParticleProduceTime == TbDataFish.ParticleProduceTimeEnum.FishMoving)
            {
                mListParticle.Add(still_particle);//跟随鱼运动
            }
            else
            {
                still_particle.setPosition(mCRenderFish.Position);
                still_particle.setLooping(false);
            }
        }
        else if (particle_data.StartPoint.ParticlePointType == TbDataFish.ParticlePointStruct.ParticlePointTypeEnum.Fixed)
        {
            still_particle.setPosition(new EbVector3(particle_data.StartPoint.x, particle_data.StartPoint.y, 0));
        }

        _setOffsetLocation(still_particle, particle_data.StartPoint.x, particle_data.StartPoint.y);
    }
Пример #3
0
 //-------------------------------------------------------------------------
 public AimParticle(CRenderFish lock_fish, StillParticle still_particle)
 {
     mLockFish      = lock_fish;
     mStillParticle = still_particle;
     mStillParticle.setLooping(false);
 }