Ejemplo n.º 1
0
        void Start()
        {
            // setup component references for convenience
            menu        = menuPanel.GetComponent <MenuPanel>();
            dialogue    = dialoguePanel.GetComponent <DialoguePanel>();
            timer       = timerPanel.GetComponent <TimerPanel>();
            audioSystem = audioPanel.GetComponent <AudioPanel>();

            // deactivate panels
            dialogue.HideDisplayPanel();
            menu.HideDisplayPanel();

            timerPanel.SetActive(true);
            timer.HideDisplayPanel();

            audioPanel.SetActive(true);
            audioSystem.HideDisplayPanel();

            // create runtime variables for convenience
            InitializeVariables();

            // start
            CheckForMenu();
            //ActivateModule();
        }
Ejemplo n.º 2
0
 void Awake()
 {
     audioSystem = (AudioPanel)FindObjectOfType <AudioPanel>();
 }