private void UpdateGraphics()
{
if (GameCoefficients.ShowCollisionAreas)
{
debugGrahic.Clear ();
const float borderWidth = 4;
debugGrahic.DrawSolidCircle (
CCPoint.Zero,
GameCoefficients.FruitRadius,
CCColor4B.Black);
debugGrahic.DrawSolidCircle (
CCPoint.Zero,
GameCoefficients.FruitRadius - borderWidth,
fruitColor.ToCCColor ());
}
if (this.FruitColor == FruitColor.Yellow)
{
graphic.Texture = CCTextureCache.SharedTextureCache.AddImage ("lemon.png");
extraPointsLabel.Color = CCColor3B.Black;
extraPointsLabel.PositionY = 0;
}
else
{
graphic.Texture = CCTextureCache.SharedTextureCache.AddImage ("cherry.png");
extraPointsLabel.Color = CCColor3B.White;
extraPointsLabel.PositionY = -8;
}
}