public void OnDisable() { if (this._action != InputMappingIcons.Actions.None) { ActionIconSystem.UnregisterIcon(base.transform, false, false); } }
public void OnEnable() { if (!this._noIcon && this._action != InputMappingIcons.Actions.None && (!this._gamepadOnlyIcon || Input.IsGamePad)) { ActionIconSystem.RegisterIcon(base.transform, this._action, this._sideIcon, ActionIconSystem.CurrentViewOptions.AllowInBook, false, false); } }
public virtual void OnEnable() { if (this._action != InputMappingIcons.Actions.None) { this.FillSprite = ActionIconSystem.RegisterIcon(base.transform, this._action, ActionIconSystem.CurrentViewOptions.AllowInWorld); } }
public override void OnEnable() { if (this._action != InputMappingIcons.Actions.None) { ActionIcon actionIcon = ActionIconSystem.GetActionIcon(base.transform.parent); actionIcon._follow._target2 = base.transform; } }
public virtual void OnDisable() { if (this._action != InputMappingIcons.Actions.None) { if (this.FillSpriteAction && this.FillSpriteAction.gameObject.activeSelf) { this.FillSpriteAction.gameObject.SetActive(false); } ActionIconSystem.UnregisterIcon(base.transform, false, true); } }
public virtual void OnEnable() { if (this._action != InputMappingIcons.Actions.None) { ActionIcon actionIcon = ActionIconSystem.RegisterIcon(base.transform, this._action, this._sideIcon, ActionIconSystem.CurrentViewOptions.AllowInWorld, false, true); if (actionIcon) { this.FillSpriteAction = actionIcon._fillSpriteAction; if (this.FillSpriteAction && this.FillSpriteAction.gameObject.activeSelf != this.UseFillSprite) { this.FillSpriteAction.gameObject.SetActive(this.UseFillSprite); } if (this.UseFillSprite) { this.FillSpriteAction.SetAction(this._action); } } } }