예제 #1
0
    private ShowPanels showPanels;                                                                              //Reference to ShowPanels script on UI GameObject, to show and hide panels


    void Awake()
    {
        //Get a reference to ShowPanels attached to UI object
        showPanels = GetComponent <ShowPanels> ();

        //Get a reference to PlayMusic attached to UI object
        playMusic = GetComponent <PlayMusic> ();

        // **** ver se é o local correto;

        showPanels.HideGameplayPanel();
        showPanels.ShowIntro();
        showPanels.HideMenu();
        showPanels.HideEndGamePanel();
    }