public void SetSpriteColor(int newId) { id = newId; if (sprite != null) { sprite.color = ColorId.GetColor(newId); } }