void _updateView()
 {
     foreach (var it in mSprite)
     {
         it.mFishStillSprite.setPosition(mPosition + CLogicUtility.getVector2ByRotateAngle(it.mOffset * mScale * mFixedScale, mAngle));
     }
 }
Exemple #2
0
 void _updateView()
 {
     foreach (var it in mStillSpriteList)
     {
         it.mStillSprite.setPosition(mPosition + CLogicUtility.getVector2ByRotateAngle(it.mOffset * mScale, mAngle));
         it.mStillSprite.setDirection(mAngle);
     }
 }
Exemple #3
0
 //-------------------------------------------------------------------------
 void _updateView()
 {
     foreach (var it in mStillSprites)
     {
         EbVector3 offset = new EbVector3(it.mOffset.x * mXScale, it.mOffset.y * mYScale, 0);
         it.mStillSprite.setPosition(mPosition + CLogicUtility.getVector2ByRotateAngle(offset, mAngle));
         it.mStillSprite.setDirection(mAngle);
     }
 }
    //-------------------------------------------------------------------------
    public void setPosition(EbVector3 pos)
    {
        EbVector3 pixel_pos = CCoordinate.logic2toolkitPos(pos);

        pixel_pos += CLogicUtility.getVector2ByRotateAngle(mOffsetLocation, mDirection);

        Vector3 cur_pos;

        cur_pos.x           = pixel_pos.x;
        cur_pos.y           = pixel_pos.y;
        cur_pos.z           = mTransform.position.z;
        mTransform.position = cur_pos;
    }