コード例 #1
0
        private static void AddSizeIfDoesntExists(int width, int height, string text)
        {
            var index = GameViewUtils.FindSize(width, height);

            if (index == -1)
            {
                GameViewUtils.AddCustomSize(width, height, text);
            }
        }
コード例 #2
0
 private void SetSize(int width, int height, string text)
 {
     AddSizeIfDoesntExists(width, height, text);
     GameViewUtils.SetSize(GameViewUtils.FindSize(width, height));
 }