void Start() { guiRect = new Rect(0, 0, 0, 0); audioType = AudioController.SoundType.Home; AudioController.Instance.Play(audioType); }
IEnumerator PlayDelayed(AudioController.SoundType audioPart2) { yield return(null); yield return(null); AudioController.Instance.Play(audioPart2); }
void Start() { guiRect = new Rect(0, 0, 0, 0); textStyle = new GUIStyle(guiSkin.GetStyle("Text")); textStyle.fontSize = 18; audioType = AudioController.SoundType.Intro; AudioController.Instance.Play(audioType); }
void SetAudioType() { if (tutorialNr == 1) { audioType = AudioController.SoundType.Tutorial1Part1; } else if (tutorialNr == 2) { audioType = AudioController.SoundType.Tutorial2Part1; } else if (tutorialNr == 3) { audioType = AudioController.SoundType.Tutorial3Part1; } }
void SetAudioType() { if (level == 1) { if (tela == 1) { audioType = AudioController.SoundType.GameLvl1Tela1; } else if (tela == 2) { audioType = AudioController.SoundType.GameLvl1Tela2; } else { audioType = AudioController.SoundType.None; } } else if (level == 2) { if (tela == 1) { audioType = AudioController.SoundType.GameLvl2Tela1; } else if (tela == 2) { audioType = AudioController.SoundType.GameLvl2Tela2; } else { audioType = AudioController.SoundType.None; } } else if (level == 3) { if (tela == 1) { audioType = AudioController.SoundType.GameLvl3Tela1; } else { audioType = AudioController.SoundType.None; } } else { audioType = AudioController.SoundType.None; } }
void Start() { guiRect = new Rect(0, 0, 0, 0); guiRect2 = new Rect(0, 0, 0, 0); pivotPoint.Set(Screen.width * 0.5f, Screen.height * 0.94f * 0.5f); styleTextLeft = new GUIStyle(guiSkin.GetStyle("Text")); styleTextLeft.alignment = TextAnchor.MiddleLeft; styleTextLeft.fontSize = 15; textStyle = new GUIStyle(guiSkin.GetStyle("Text")); textStyle.fontSize = 22; StartCoroutine(GetRanks()); audioType = AudioController.SoundType.Ranks; AudioController.Instance.Play(audioType); }
void Start() { guiRect = new Rect(0, 0, 0, 0); levelRect = new Rect(0, 0, 0, 0); for (int i = 1; i <= MySettings.unlockedLeves; i++) { if (PlayerPrefs.HasKey("ratingLevel" + i)) { ratingLevels.Add(i, PlayerPrefs.GetInt("ratingLevel" + i)); } else { ratingLevels.Add(i, 0); PlayerPrefs.SetInt("ratingLevel" + i, ratingLevels[i]); } } audioType = AudioController.SoundType.Levels; AudioController.Instance.Play(audioType); }