public LinkLockedFishFeature(CRenderScene scene, CRenderTurret turret) { mCRenderTurret = turret; mScene = scene; mLayer = mScene.getLayerAlloter().getLayer(_eLevelLayer.LinkLockedFish); mArrow = mScene.getRenderObjectPool().newStillSprite(); mArrow.setScale(0.5f); mArrow.playAnimation("locking_line_array"); mArrow.setColor(mCRenderTurret.getTurretColor()); mArrow.setLayer(mLayer); mNumber = mScene.getRenderObjectPool().newStillSprite(); mNumber.setScale(1f); mNumber.playAnimation("locking_line_target_" + mCRenderTurret.getTurretId()); mNumber.setColor(mCRenderTurret.getTurretColor()); mNumber.setLayer(mLayer); setActive(false); #if UNITY_EDITOR mArrow.gameObject.name = "TkSpriteLinkLocked_locking_line_array"; mNumber.gameObject.name = "TkSpriteLinkLocked_locking_line_target_" + mCRenderTurret.getTurretId(); #endif }
void newRectangleSprite() { StillSprite sprite = mScene.getRenderObjectPool().newStillSprite(); sprite.playAnimation("locking_line_rectangle"); sprite.setColor(mCRenderTurret.getTurretColor()); sprite.setScale(0.5f); sprite.setLayer(mLayer); mRectangle.Add(sprite); #if UNITY_EDITOR sprite.gameObject.name = "TkSpriteLinkLocked_locking_line_rectangle"; #endif }