void SetBackground(Button button, Color color, string textureName) { if (!TextureReplacement.TryCustomizeButton(ref button, textureName)) { button.BackgroundColor = color; } }
void SetBackground(Button button, Color color, string textureName) { #pragma warning disable 0618 if (!TextureReplacement.TryCustomizeButton(ref button, textureName)) { button.BackgroundColor = color; } #pragma warning restore 0618 }