コード例 #1
0
 public static void callReload(XboxAxis axis)
 {
     Debug.Log("Reloading!");
     for (int i = 0; i < buttonList.Count; i++)
     {
         if (buttonList[i] is UITrigger)
         {
             UITrigger tmp = (UITrigger)buttonList[i];
             if (tmp.axis == axis)
             {
                 buttonDetails dets = tmp.Gamebutton.GetComponent <buttonDetails>();
                 dets.reload();
                 break;
             }
         }
     }
 }
コード例 #2
0
 public static void callReload(XboxKey key)
 {
     Debug.Log("Reloading!");
     for (int i = 0; i < buttonList.Count; i++)
     {
         if (buttonList[i] is UIbutton)
         {
             UIbutton tmp = (UIbutton)buttonList[i];
             if (tmp.key == key)
             {
                 buttonDetails dets = tmp.Gamebutton.GetComponent <buttonDetails>();
                 dets.reload();
                 break;
             }
         }
     }
 }