예제 #1
0
    void PlayIdleMusic()
    {
        int song = UnityEngine.Random.Range(0, 4);

        //Debug.Log("Reproduciendo música de reposo");
        musicScript.PlaySong(song, 0, 0);
    }
예제 #2
0
    void PlayIdleMusic()
    {
        int song = UnityEngine.Random.Range(0, 2);

        Debug.Log("Reproduciendo música de reposo: " + song);
        musicScript.PlaySong(song, 0, 0);

        /*   timeLeft = UnityEngine.Random.Range(minDelay, maxDelay);
         * resetTimer = false;
         */
    }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     musicScript.PlaySong(0, 0, 0.5f);
 }
예제 #4
0
 //
 public void PlaySong(int song, int layer)
 {
     grumble.PlaySong(song, layer);
 }
예제 #5
0
 public void OpenMenu()
 {
     gA.PlaySong(0, 0);
 }
예제 #6
0
 void hitFadeIn()
 {
     gA.PlaySong(activeSong, activeLayer, fadeInTime);
 }
예제 #7
0
 private void Start()
 {
     _amp = GetComponent <grumbleAMP>();
     _amp.PlaySong(0, 0);
 }
예제 #8
0
 void Start()
 {
     SetUp();
     amp.PlaySong(0, 0, 0);
     Invoke("StartMusic", referenceClip.length - 2.0f);
 }