Exemple #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();
        }
 void Awake()
 {
     audioSystem = (AudioPanel)FindObjectOfType <AudioPanel>();
 }