private static void AddSizeIfDoesntExists(int width, int height, string text) { var index = GameViewUtils.FindSize(width, height); if (index == -1) { GameViewUtils.AddCustomSize(width, height, text); } }
private void SetSize(int width, int height, string text) { AddSizeIfDoesntExists(width, height, text); GameViewUtils.SetSize(GameViewUtils.FindSize(width, height)); }