Example #1
0
 void CreateNewInputAction()
 {
     if (IsControlSchemeSelected)
     {
         ControlScheme scheme = schemes[hierarchyGUI.selections[0]];
         scheme.CreateNewAction("New Action", "New Action Display Name");
         hierarchyGUI.selections[1] = scheme.Actions.Count - 1;
         InputManagerWindow.instance.Repaint();
     }
 }
 void CreateNewInputAction()
 {
     if (IsControlSchemeSelected)
     {
         ControlScheme scheme = schemes[selectedControlSchemeIndex];
         scheme.CreateNewAction("New Action", "New Action Display Name");
         selectedActionIndex = scheme.Actions.Count - 1;
         ResetKeyFields();
         InputManagerWindow.instance.Repaint();
     }
 }