Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //audioManager = FindObjectOfType<AZProceduralAudioManager>();
     //soundGenerator = FindObjectOfType<TriggerSoundGenerator>();
     dataManager       = GetComponent <DataManager>();
     areaManager       = GetComponent <AreaManager>();
     gameCanvasManager = FindObjectOfType <GameCanvasManager>();
     //gameState = GAME_STATE.MENU;
     gameCanvasManager.gameManager = this;
     InitializeGame();
 }
Ejemplo n.º 2
0
        private void Init()
        {
            areaManager = FindObjectOfType <AreaManager>();
            canvas      = GetComponent <Canvas>();
            uiPeople    = new List <Person>();
            SetTextToStart();

            aButton.onClick.AddListener(AButtonClick);
            bButton.onClick.AddListener(BButtonClick);
            cButton.onClick.AddListener(CButtonClick);
            dButton.onClick.AddListener(DButtonClick);
            submitButton.onClick.AddListener(SubmitButtonClick);
            submitButton.GetComponentInChildren <Text>().text = "Submit";
            creditsButton.onClick.AddListener(CreditsButtonClick);
        }