예제 #1
0
    void initFish(string animation, EbVector3 offset, float angle_speed, float layer_offset, ISpriteFish sprite_fish)
    {
        SpriteAndOffset sprite_offset =
            new SpriteAndOffset(mScene.getRenderObjectPool().newFishStillSprite(),
                                EbVector3.Zero, angle_speed, layer_offset);

        sprite_offset.mFishStillSprite.init(sprite_fish, mScene);
        sprite_offset.mFishStillSprite.playAnimation(animation);
        mSprite.Add(sprite_offset);
    }
예제 #2
0
 void initFish(string animation, EbVector3 offset, float angle_speed, float layer_offset, ISpriteFish sprite_fish)
 {
     SpriteAndOffset sprite_offset =
         new SpriteAndOffset(mScene.getRenderObjectPool().newFishStillSprite(),
                 EbVector3.Zero, angle_speed, layer_offset);
     sprite_offset.mFishStillSprite.init(sprite_fish, mScene);
     sprite_offset.mFishStillSprite.playAnimation(animation);
     mSprite.Add(sprite_offset);
 }