Esempio n. 1
0
 /// <summary>
 /// Goes through all global names in scope and checks if they represent an InputAxis object.
 /// </summary>
 private void LinkAxes()
 {
     LinkedAxes.Clear();
     foreach (var name in python.GetVariableNames())
     {
         try
         {
             var axis = python.GetVariable <InputAxis>(name);
             if (axis != null)
             {
                 LinkedAxes.Add(axis.Name);
             }
         }
         catch
         {
             continue;
         }
     }
 }