private void FirstRunFunction() { AudioControl = GameObject.Find("Non Diegetic Audio").GetComponent <NonDiegeticController>(); CombatChecker = GameObject.Find("CombatChecker").GetComponent <CombatChecker>(); BackgroundImage = transform.Find("BackgroundImage").gameObject; SkillMenu = transform.Find("Panel").Find("SkillMenu").gameObject; StatsMenu = transform.Find("Panel").Find("StatsMenu").gameObject; WorldMenu = transform.Find("Panel").Find("WorldMenu").gameObject; InventoryMenu = transform.Find("Panel").Find("InventoryMenu").gameObject; AbilitiesMenu = transform.Find("Panel").Find("AbilitiesMenu").gameObject; SettingsMenu = transform.Find("Panel").Find("SettingsMenu").gameObject; QuitMenu = transform.Find("Panel").Find("QuitMenu").gameObject; worldButton = transform.Find("NavMenu").Find("ButtonList").Find("World").GetComponent <Animator>(); statsButton = transform.Find("NavMenu").Find("ButtonList").Find("Stats").GetComponent <Animator>(); inventoryButton = transform.Find("NavMenu").Find("ButtonList").Find("Inventory").GetComponent <Animator>(); skillsButton = transform.Find("NavMenu").Find("ButtonList").Find("Skills").GetComponent <Animator>(); abilitiesButton = transform.Find("NavMenu").Find("ButtonList").Find("Abilities").GetComponent <Animator>(); settingsButton = transform.Find("NavMenu").Find("ButtonList").Find("Settings").GetComponent <Animator>(); quitButton = transform.Find("NavMenu").Find("ButtonList").Find("Quit").GetComponent <Animator>(); navMenu = transform.Find("NavMenu").GetComponent <Animator>(); uiController = GetComponentInParent <UIController>(); }
void Start() { Assert.IsTrue(audioSources[0].volume == audioSources[1].volume); audioLevel = audioSources[0].volume; CC = GameObject.Find("Player").GetComponentInChildren <CombatChecker>(); }