private void OnLevelWasLoaded() { efxSource.Stop(); efxSource.mute = false; //LoadInformation.LoadAllInformation(); if (GameInformation.SpeechAutoPlay) { Debug.Log("auto play is on"); SpeechButton currentSpeechButton = GameObject.Find("SpeechButtonBorder").GetComponentInChildren <SpeechButton>(); Debug.Log(currentSpeechButton.name); currentSpeechButton.PlaySpeechClip(); } }
// Use this for initialization void Start() { topicButtons[0] = readingButton; topicButtons[1] = interventionButton; topicButtons[2] = differencesButton; topicButtons[3] = wrongButton; topicTexts[0] = readingBodyText; topicTexts[1] = interventionBodyText; topicTexts[2] = differencesBodyText; topicTexts[3] = wrongBodyText; sb = topicSelectSpeechButton.GetComponentInChildren <SpeechButton>(); for (int i = 0; i < topicTexts.Length; i++) { if (topicTexts[i] != null) { topicTexts[i].SetActive(false); } } for (int i = 1; i < topicButtons.Length; i++) { if (topicButtons[i] != null) { topicButtons[i].SetActive(false); } } selectedTopicTitle.SetActive(false); topicReturnButton.SetActive(false); areaReturnButton.SetActive(false); if (readingGraphic != null) { readingGraphic.SetActive(false); } if (differencesGraphic != null) { differencesGraphic.SetActive(false); } if (wrongGraphic != null) { wrongGraphic.SetActive(false); } }
// Use this for initialization void Start() { GameInformation.InterventionComplete = true; SaveInformation.SaveAllInformation(); activeText = texts[index]; for (int i = 1; i < 5; i++) { texts[i].SetActive(false); } nextSceneButton.SetActive(false); sb = topicSelectSpeechButton.GetComponentInChildren <SpeechButton>(); }