Ejemplo n.º 1
0
    public void PlayBGM(EBGM bgm, bool loop = true)
    {
        AudioClip ac = m_BGMClips[(int)bgm];

        m_BGMSource.clip = ac;
        m_BGMSource.loop = loop;
        m_BGMSource.Play();
    }
Ejemplo n.º 2
0
 void Start()
 {
     Instance           = this;
     Screen.orientation = ScreenOrientation.Portrait;
     timeText           = GameObject.Find("TimeText").GetComponent <Text>();
     points             = 0;
     pointsToGet        = 5;
 }