public void ApplySkin(GameObject obj) { if (!(Skinnable == null)) { Skin.Apply(obj, Skinnable, Materials); } }
public void ApplySkin(GameObject obj) { if (Object.op_Equality((Object)this.Skinnable, (Object)null)) { return; } Skin.Apply(obj, this.Skinnable, this.Materials); }
public void ApplySkin(GameObject obj) { if (this.Skinnable == null) { return; } Skin.Apply(obj, this.Skinnable, this.Materials); }
public void ApplySkin(Skin skin) { // Apply to children first so they don't override parent's properties foreach (UIComponent control in this.controls) control.ApplySkin(skin); skin.Apply(this); }
/// <summary> /// This applies a skin to this gui. If applyDefaults is true, then the /// defaults for subsequent controls are also changed. /// </summary> /// <param name="skin">The skin to apply.</param> /// <param name="applyDefaults">Should control defaults be modified?</param> /// <param name="applyCurrent">Should existing controls have their properties modified?</param> public void ApplySkin(Skin skin, bool applyCurrent, bool applyDefaults) { // Apply to GUI and possibly control defaults skin.Apply(this, applyDefaults); // Apply to every control already part of the GUI if (applyCurrent) { foreach (UIComponent control in this.controls) control.ApplySkin(skin); } }