public GUIStyleState(GUIStyleState copy) { Background = copy.Background; TextColor = copy.TextColor; ScaledBackgrounds = new PPtr <Texture2D> [copy.ScaledBackgrounds.Length]; for (int i = 0; i < copy.ScaledBackgrounds.Length; i++) { ScaledBackgrounds[i] = copy.ScaledBackgrounds[i]; } }
public GUIStyleState(GUIStyleState copy) { Background = copy.Background; TextColor = copy.TextColor; m_scaledBackgrounds = new PPtr <Texture2D> [copy.ScaledBackgrounds.Count]; for (int i = 0; i < copy.ScaledBackgrounds.Count; i++) { m_scaledBackgrounds[i] = copy.ScaledBackgrounds[i]; } }