示例#1
0
 public void OnDisable()
 {
     if (this._action != InputMappingIcons.Actions.None)
     {
         ActionIconSystem.UnregisterIcon(base.transform, false, false);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 public virtual void OnEnable()
 {
     if (this._action != InputMappingIcons.Actions.None)
     {
         this.FillSprite = ActionIconSystem.RegisterIcon(base.transform, this._action, ActionIconSystem.CurrentViewOptions.AllowInWorld);
     }
 }
示例#4
0
 public override void OnEnable()
 {
     if (this._action != InputMappingIcons.Actions.None)
     {
         ActionIcon actionIcon = ActionIconSystem.GetActionIcon(base.transform.parent);
         actionIcon._follow._target2 = base.transform;
     }
 }
示例#5
0
 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);
     }
 }
示例#6
0
 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);
             }
         }
     }
 }