示例#1
0
 /// <summary>
 /// Changes the buton skin font & textures.
 /// </summary>
 /// <param name="fontSize">The size of the font.</param>
 /// <param name="color">The color of the font.</param>
 /// <param name="normal">The normal state texture.</param>
 /// <param name="hover">The hover state texture.</param>
 /// <param name="active">The active state texture.</param>
 protected void changeButtonTextures(int fontSize, Color color,
                                     Texture2D normal, Texture2D hover, Texture2D active)
 {
     GuiUtil.ChangeFont(GUI.skin.button, fontSize, color);
     GuiUtil.ChangeTextures(GUI.skin.button, normal, hover, active);
 }