public void GoToSettingsMenu() { SShipUpgradeMenu.SetActive(false); LevelSelect.SetActive(false); UpgradesMenu.SetActive(false); UpgradeStatusMenu.SetActive(false); UpgradeSkillsMenu.SetActive(false); SettingsMenu.SetActive(true); MainMenu.SetActive(false); }
public void GotoUpgradeSkillsMenu() { LevelSelect.SetActive(false); UpgradesMenu.SetActive(true); UpgradeStatusMenu.SetActive(false); UpgradeSkillsMenu.SetActive(true); SettingsMenu.SetActive(false); MainMenu.SetActive(false); SShipUpgradeMenu.SetActive(false); GameObject.Find("SavesHandler").GetComponent <UpgradesHandler>().UpgSkillMenu(); }
public void GoToSShipUpgradesMenu() { SpaceShipLVLSelected = 1; currentPathSelected = 1; Right.SetActive(true); Left.SetActive(false); SShipUpgradeMenu.SetActive(false); LevelSelect.SetActive(false); SShipUpgradeMenu.SetActive(true); UpgradesMenu.SetActive(false); UpgradeStatusMenu.SetActive(false); UpgradeSkillsMenu.SetActive(false); SettingsMenu.SetActive(false); MainMenu.SetActive(false); UpdateCurrentSShipDisplay(); if (UpgradesHandler.UnlockedLevels[15]) { UpgradeLock[1].SetActive(false); } else { UpgradeLock[1].SetActive(true); } if (UpgradesHandler.UnlockedLevels[25]) { UpgradeLock[2].SetActive(false); } else { UpgradeLock[2].SetActive(true); } if (UpgradesHandler.UnlockedLevels[30]) { UpgradeLock[3].SetActive(false); } else { UpgradeLock[3].SetActive(true); } if (UpgradesHandler.UnlockedLevels[45]) { UpgradeLock[4].SetActive(false); } else { UpgradeLock[4].SetActive(true); } if (UpgradesHandler.UnlockedLevels[50]) { UpgradeLock[5].SetActive(false); } else { UpgradeLock[5].SetActive(true); } if (UpgradesHandler.UnlockedLevels[60]) { UpgradeLock[6].SetActive(false); } else { UpgradeLock[6].SetActive(true); } if (UpgradesHandler.UnlockedLevels[65]) { UpgradeLock[7].SetActive(false); } else { UpgradeLock[7].SetActive(true); } if (UpgradesHandler.UnlockedLevels[75]) { UpgradeLock[8].SetActive(false); } else { UpgradeLock[8].SetActive(true); } if (UpgradesHandler.UnlockedLevels[80]) { UpgradeLock[9].SetActive(false); } else { UpgradeLock[9].SetActive(true); } if (UpgradesHandler.UnlockedLevels[90]) { UpgradeLock[10].SetActive(false); } else { UpgradeLock[10].SetActive(true); } if (UpgradesHandler.UnlockedLevels[100]) { UpgradeLock[11].SetActive(false); } else { UpgradeLock[11].SetActive(true); } }