Beispiel #1
0
 void _updateView()
 {
     foreach (var it in mFishs)
     {
         it.mFishStillSprite.setPosition(mPosition + CLogicUtility.getVector2ByRotateAngle(it.mOffset * mScale, mAngle));
         it.mFishStillSprite.setDirection(mAngle);
     }
     mCycle.setPosition(mPosition);
     mCycle.setDirection(mAngle);
 }
Beispiel #2
0
 public void update(float elapsed_tm)
 {
     mAngle += mAngleSpeed * elapsed_tm;
     mFishStillSprite.setDirection(mAngle);
 }