Пример #1
0
 //-------------------------------------------------------------------------
 public void update(float elapsed_tm)
 {
     if (mIsRotation)
     {
         mAngle += 60 * UnityEngine.Time.deltaTime;//不受时间因子影响
         _updateView();
     }
     else
     {
         if (mIsPlayingDieAnimation)
         {
             mCount -= UnityEngine.Time.deltaTime;//不受时间因子影响
             if (mCount <= 0)
             {
                 mRenderFish.signDestroy();
                 mIsPlayingDieAnimation = false;
             }
         }
     }
 }
Пример #2
0
 //-------------------------------------------------------------------------
 void _updateDieAnimation(float elapsed_tm)
 {
     if (mIsRotation)
     {
         mAngle += 60 * elapsed_tm;
         _updateView();
     }
     else
     {
         if (mIsPlayingDieAnimation)
         {
             mCount -= elapsed_tm;
             if (mCount <= 0)
             {
                 mRenderFish.signDestroy();
                 mIsPlayingDieAnimation = false;
             }
         }
     }
 }
Пример #3
0
 //---------------------------------------------------------------------
 void _signDestroy()
 {
     mIsSpriteDestroy = true;
     mRenderFish.signDestroy();
     mIsPlayingDieAnimation = false;
 }