public void inventoryTutorial() { if (playerDataScript.hasDoneCampInventoryTutorial == false) { playerDataScript.hasDoneCampInventoryTutorial = true; SwitchToPanel.activatePanel(campInventoryTutorialPanel, allTutorialPanels); } }
IEnumerator clickToPanelWait(GameObject panel) { if (firstTime == true) { firstTime = false; yield return(new WaitForSeconds(DELAY_B4_NEXT_TUT)); SwitchToPanel.activatePanel(panel, this.allTutorialPanels); firstTime = true; } }
// Use this for initialization void Start() { playerDataScript = GameObject.Find("Player Data Manager").GetComponent <PlayerDataScript> (); allTutorialPanels.Add(campTutorialPanel); allTutorialPanels.Add(campShopTutorialPanel); allTutorialPanels.Add(campInventoryTutorialPanel); closeTutorialPanels(); if (playerDataScript.hasDoneCampTutorial == false) { SwitchToPanel.activatePanel(campTutorialPanel, allTutorialPanels); playerDataScript.hasDoneCampTutorial = true; } //set on click listener for shop and inventory button to show tutorial shopButton.onClick.AddListener(() => shopTutorial()); inventoryButton.onClick.AddListener(() => inventoryTutorial()); inventoryButton2.onClick.AddListener(() => inventoryTutorial()); }
//public SwitchToPanel switchToPanelScript; // Use this for initialization void Start() { //initialise the game panels here into the arraylist allCampPanels.Add(campPanel); allCampPanels.Add(vendMachinePanel); allCampPanels.Add(shopPanel); allCampPanels.Add(savePanel); allCampPanels.Add(mainMenuPanel); allCampPanels.Add(inventoryPanel); allCampPanels.Add(quitPanel); //always want campPanel to be on SwitchToPanel.activatePanel(campPanel, allCampPanels); //dont allow player to shoot or rotate in the camp scene PlayerController player = GameObject.Find("Player").GetComponent <PlayerController>(); player.allowMouseLeftClick = false; player.allowMouseRotation = false; }
public void clickToPanel(GameObject panel) { blurScript.enabled = true; SwitchToPanel.activatePanel(panel, this.allHackingGamePanels); }
/*closes all item info panels, and then opens the specified panel*/ void SwitchToItemContent(GameObject content) { SwitchToPanel.activatePanel(content, itemContentsArray); }
public void clickToTutorialPanel(GameObject panel) { SwitchToPanel.activatePanel(panel, allTutorialPanels); }
/*generic function for OnClick() button calls. attach this to a button and type in the * parameter to switch to the specified panel. Always keeps the camp panel active*/ public void clickToPanel(GameObject panel) { SwitchToPanel.activatePanel(panel, allCampPanels); //we always want camp Panel to be active campPanel.SetActive(true); }
void switchPanelTab(GameObject panel) { //SwitchToPanel.closeAllPanels (allTabPanels); SwitchToPanel.activatePanel(panel, allTabPanels); }