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; } } } }
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; } } } }