Example #1
0
 public void OnDisable()
 {
     if (this._action != InputMappingIcons.Actions.None)
     {
         ActionIcon actionIcon = ActionIconSystem.UnregisterIcon(base.transform);
         if (actionIcon)
         {
             if (this._overrideDepth)
             {
                 if (this._currentViewOption == ActionIconSystem.CurrentViewOptions.AllowInBook)
                 {
                     actionIcon._follow._depthRatioBook = this._oldDepth;
                 }
                 else
                 {
                     actionIcon._follow._minDepth = this._oldDepth;
                 }
             }
             if (this._overrideHeight)
             {
                 if (this._currentViewOption == ActionIconSystem.CurrentViewOptions.AllowInBook)
                 {
                     actionIcon._follow._worldOffsetBook.y = this._oldHeight;
                 }
                 else
                 {
                     actionIcon._follow._worldOffset.y = this._oldHeight;
                 }
             }
         }
     }
 }
Example #2
0
 public void OnDisable()
 {
     if (this._action != InputMappingIcons.Actions.None)
     {
         ActionIconSystem.UnregisterIcon(base.transform, this._useAltTextIcon, this._registeredAsBigIcon);
     }
 }