public void inventoryTutorial()
 {
     if (playerDataScript.hasDoneCampInventoryTutorial == false)
     {
         playerDataScript.hasDoneCampInventoryTutorial = true;
         SwitchToPanel.activatePanel(campInventoryTutorialPanel, allTutorialPanels);
     }
 }
Ejemplo n.º 2
0
    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());
    }
Ejemplo n.º 4
0
    //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;
    }
Ejemplo n.º 5
0
 public void clickToPanel(GameObject panel)
 {
     blurScript.enabled = true;
     SwitchToPanel.activatePanel(panel, this.allHackingGamePanels);
 }
Ejemplo n.º 6
0
 /*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);
 }
Ejemplo n.º 8
0
    /*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);
    }
Ejemplo n.º 9
0
 void switchPanelTab(GameObject panel)
 {
     //SwitchToPanel.closeAllPanels (allTabPanels);
     SwitchToPanel.activatePanel(panel, allTabPanels);
 }