Example #1
0
 private void RedrawUI()
 {
     if (this.controller == null)
     {
         this.ClearUI();
     }
     else
     {
         this.controllerNameUIText.set_text(this.controller.get_name());
         for (int index = 0; index < this.rows.Count; ++index)
         {
             // ISSUE: object of a compiler-generated type is created
             // ISSUE: variable of a compiler-generated type
             SimpleControlRemapping.\u003CRedrawUI\u003Ec__AnonStorey0 redrawUiCAnonStorey0 = new SimpleControlRemapping.\u003CRedrawUI\u003Ec__AnonStorey0();
             // ISSUE: reference to a compiler-generated field
             redrawUiCAnonStorey0.\u0024this = this;
             SimpleControlRemapping.Row row = this.rows[index];
             InputAction action             = this.rows[index].action;
             string      str = string.Empty;
             // ISSUE: reference to a compiler-generated field
             redrawUiCAnonStorey0.actionElementMapId = -1;
             using (IEnumerator <ActionElementMap> enumerator = this.controllerMap.ElementMapsWithAction(action.get_id()).GetEnumerator())
             {
                 while (((IEnumerator)enumerator).MoveNext())
                 {
                     ActionElementMap current = enumerator.Current;
                     if (current.ShowInField(row.actionRange))
                     {
                         str = current.get_elementIdentifierName();
                         // ISSUE: reference to a compiler-generated field
                         redrawUiCAnonStorey0.actionElementMapId = current.get_id();
                         break;
                     }
                 }
             }
             row.text.set_text(str);
             ((UnityEventBase)row.button.get_onClick()).RemoveAllListeners();
             // ISSUE: reference to a compiler-generated field
             redrawUiCAnonStorey0.index = index;
             // ISSUE: method pointer
             ((UnityEvent)row.button.get_onClick()).AddListener(new UnityAction((object)redrawUiCAnonStorey0, __methodptr(\u003C\u003Em__0)));
         }
     }
 }