void ScrollButtons() { hackList[a].HackButton.Select(); currentHackScript = hackList[a]; if (Input.GetAxis(InputList.MOUSEWHEEL) > 0) { if (a == hackList.Count - 1) { a = 0; } else { a++; } } if (Input.GetAxis(InputList.MOUSEWHEEL) < 0) { if (a <= 0) { a = hackList.Count - 1; } else { a--; } } }
void Start() { a = 0; hackPanel.SetActive(false); currentHackScript = hackList[a]; }