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(); }
void Start() { Instance = this; Screen.orientation = ScreenOrientation.Portrait; timeText = GameObject.Find("TimeText").GetComponent <Text>(); points = 0; pointsToGet = 5; }