Esempio n. 1
0
 //-------------------------------------------------------------------------
 public void update(float elapsed_tm)
 {
     if (mIsNeedAutoDestroy)
     {
         mTimeCounter += elapsed_tm;
         if (mTimeCounter >= mFunDelayTime)
         {
             remove(this);
         }
         else if (mNeedFadeout)
         {
             mAlpha -= elapsed_tm / mFadeoutFunDelayTime;
             mCSpriteNumber.setAlpha(mAlpha);
         }
         else
         {
             mMassEntity.update(elapsed_tm);
             mCSpriteNumber.setPosition(mMassEntity.Position, 0);
             if (mMassEntity.IsEndRoute)
             {
                 mNeedFadeout = true;
             }
         }
     }
 }
Esempio n. 2
0
 //-------------------------------------------------------------------------
 public void setAlpha(float alpha)
 {
     mCSpriteNumber.setAlpha(alpha);
     mNumberBackgroundCSprite.setAlpha(alpha);
 }