Example #1
0
 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--;
         }
     }
 }
Example #2
0
 void Start()
 {
     a = 0;
     hackPanel.SetActive(false);
     currentHackScript = hackList[a];
 }