示例#1
0
 public SceneManager(byte[] backgroundSound, string sceneTitle, string sentences)
 {
     stringRes.AddRange(SplitSentences(sentences));
     countOfSentenceVisiable = stringRes.Count;
     Task.Run(() =>
     {
         backgroundSoundFile = new FileCache(backgroundSound, "mp3");
         SoundManager.GetInstance().PlayFile(backgroundSoundFile.FilePath, true);
     });
     MovableStyle4Object titleObj = new MovableStyle4Object(50.0f, 100.0f, sceneTitle,
         Color.DeepPink, new Font(FontFamily.GenericSansSerif, 30.0f));
     titleObj.SpeedX = 0.4f;
     objects.Add(titleObj);
 }
示例#2
0
        public SceneManager(byte[] backgroundSound, string sceneTitle, string sentences)
        {
            stringRes.AddRange(SplitSentences(sentences));
            countOfSentenceVisiable = stringRes.Count;
            Task.Run(() =>
            {
                backgroundSoundFile = new FileCache(backgroundSound, "mp3");
                SoundManager.GetInstance().PlayFile(backgroundSoundFile.FilePath, true);
            });
            MovableStyle4Object titleObj = new MovableStyle4Object(50.0f, 100.0f, sceneTitle,
                                                                   Color.DeepPink, new Font(FontFamily.GenericSansSerif, 30.0f));

            titleObj.SpeedX = 0.4f;
            objects.Add(titleObj);
        }