Example #1
0
    void Start()
    {
        guiRect = new Rect(0, 0, 0, 0);

        audioType = AudioController.SoundType.Home;
        AudioController.Instance.Play(audioType);
    }
Example #2
0
    void Start()
    {
        guiRect = new Rect(0, 0, 0, 0);

        audioType = AudioController.SoundType.Home;
        AudioController.Instance.Play(audioType);
    }
Example #3
0
    IEnumerator PlayDelayed(AudioController.SoundType audioPart2)
    {
        yield return(null);

        yield return(null);

        AudioController.Instance.Play(audioPart2);
    }
Example #4
0
    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);
    }
Example #5
0
    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);
    }
Example #6
0
 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;
     }
 }
Example #7
0
 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;
     }
 }
Example #8
0
 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;
     }
 }
Example #9
0
    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);
    }
Example #10
0
    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);
    }
Example #11
0
    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);
    }
Example #12
0
    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);
    }
Example #13
0
 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;
     }
 }