Example #1
0
    void OnEnable()
    {
        int n = Random.Range(0, 3);
        textures = Resources.LoadAll<Texture2D>("movie" + (n + 1));

        if (n == 0)
        {
            source.clip = m1;
        }
        else if (n == 1)
        {
            source.clip = m2;
        }
        else
        {
            source.clip = m3;
        }
        source.loop = false;


        SoundMgr.StopBGM();
        StartCoroutine(StartFrame());
    }
Example #2
0
 /// <summary>
 /// BGM停止
 /// </summary>
 public void StopBgm(float time)
 {
     soundMgr.StopBGM(time);
 }