Beispiel #1
0
 public void LoadMenu(BaseMenuScript baseMenuScript, Button[,] buttonMap,
                      int defaultButtonX, int defaultButtonY)
 {
     this.menuScript = baseMenuScript;
     this.buttonMap  = buttonMap;
     this.currentX   = defaultButtonX;
     this.currentY   = defaultButtonY;
     this.maxX       = buttonMap.GetLength(1) - 1;
     this.maxY       = buttonMap.GetLength(0) - 1;
     menuActive      = true;
     lockedMenu      = false;
     playerSelector.SetActive(true);
     selectedSpriteActive = false;
     playerSelector.GetComponent <RawImage>().texture = unselectedSprite;
     if (isPlayerOne)
     {
         playerTwoNavigation.DeactivateMenu();
     }
     SelectButton();
 }
Beispiel #2
0
 public void LoadMenu(BaseMenuScript baseMenuScript, Button[,] buttonMap,
                      int defaultButtonX, int defaultButtonY, int defaultButtonXTwo, int defaultButtonYTwo)
 {
     LoadMenu(baseMenuScript, buttonMap, defaultButtonX, defaultButtonY);
     playerTwoNavigation.LoadMenu(baseMenuScript, buttonMap, defaultButtonXTwo, defaultButtonYTwo);
 }