public UXButton(UXCamera uxCamera, UXButtonComponent component) : base(uxCamera, component.gameObject, component.NGUIButton) { this.component = component; this.OnClicked = null; this.OnPressed = null; this.OnReleased = null; this.NGUIButton = component.NGUIButton; this.VisuallyDisabled = false; if (this.NGUIButton != null) { this.defaultButtonColor = this.NGUIButton.defaultColor; } this.inhibitor = ((Service.UserInputInhibitor == null) ? null : Service.UserInputInhibitor); }
public UXButton(UXCamera uxCamera, UXButtonComponent component) { this.defaultButtonColor = new Color(255f, 255f, 255f, 1f); base..ctor(uxCamera, component.gameObject, component.NGUIButton); this.component = component; this.OnClicked = null; this.OnPressed = null; this.OnReleased = null; this.NGUIButton = component.NGUIButton; this.VisuallyDisabled = false; if (this.NGUIButton != null) { this.defaultButtonColor = this.NGUIButton.defaultColor; } this.inhibitor = (Service.IsSet <UserInputInhibitor>() ? Service.Get <UserInputInhibitor>() : null); }