예제 #1
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0) && GameSystem.gameStatus != GameSystem.status.pause)
     {
         if (点击时播放音效)
         {
             if (根据名称播放)
             {
                 PerformSystem.Play(音效数据.soundName);
             }
             else
             {
                 PerformSystem.Play(音效数据.audio);
             }
         }
     }
 }
예제 #2
0
        public override IEnumerator Excute()
        {
            DailyData11 data = GameSystem.dailyData11;

            if (GameSystem.condition[2])
            {
                TVTurnedOnTimes++;
                yield return(SBreak());

                data.TV.isWork = true;
            }
            yield return(SSpeak(data.LinJuZhangFu, "……唉,不需要", "不需要。", 2));

            yield return(SSpeak(data.KeRen, "哎,你这就不懂了。算了算了,要不你", "再看看这个?", 2));

            yield return(SSpeak(data.LinJuZhangFu, "好小子,", "好不容易回趟村,你就光顾着做你的生意了?", 2));

            yield return(SSpeak(data.KeRen, "你这说的什么话?我在城里见了这么多稀奇,第一个想到你,", "一心只想着给你带回来。", 2));

            yield return(SSpeak(data.LinJuZhangFu, "好好好,看看,看看。", "这是什么东西?", 2));

            yield return(SSpeak(data.KeRen, "这叫八音盒,城里人穷讲究的东西。你看,", "照这儿一摁。", 6));

            PerformSystem.Play("8YinHe");
            yield return(SSpeak(data.LinJuZhangFu, "", "这小娃娃哪里出来的?!", 2));

            yield return(SSpeak(data.KeRen, "", "还能跳舞呢!", 2));

            yield return(SSpeak(data.KeRen, "你孩子,", "你老头子,一定喜欢这小东西。", 2));

            yield return(SSpeak(data.LinJuZhangFu, "嗨,说起", "老头子。", 2));

            yield return(SSpeak(data.LinJuZhangFu, "", "上回阿宽给了我个小娃娃,也是这种,摁一下就能动的。", 2));

            yield return(SSpeak(data.LinJuZhangFu, "我想拿它哄哄我们家老头子,结果,", "老头子说了啥你知道不知道?", 2));

            yield return(SSpeak(data.KeRen, "", "说了啥?", 2));

            yield return(SSpeak(data.LinJuZhangFu, "这个小娃娃不好。", "它只有一个动作。我的小娃娃长得比它好看,而且我让它怎么动,它就怎么动。", 2));

            yield return(SSpeak(data.KeRen, "", "他也有这样的小娃娃?", 2));

            yield return(SSpeak(data.LinJuZhangFu, "哪儿能呢?", "老头子说的是他的皮影。", 2));

            yield return(SSpeak(data.KeRen, "", "唱戏的那个?", 2));

            yield return(SSpeak(data.LinJuZhangFu, "", "还能是哪个?", 2));

            yield return(SSpeak(data.KeRen, "我今早才路过戏院,", "还以为废了呢。", 2));

            yield return(SSpeak(data.LinJuZhangFu, "早几年就说要废,可那个皮影戏班子一直不从。可不就一直拖着,", "拖到了今天。", 2));

            yield return(SSpeak(data.KeRen, "", "皮影戏班子?", 2));

            yield return(SSpeak(data.LinJuZhangFu, "现在也就剩四个人了。", "我家老头子,隔壁老王,还有老牛那两口子。", 2));

            yield return(SSpeak(data.KeRen, "原来如此……诶,所以", "这八音盒你要吗?", 2));

            yield return(Speak(data.LinJuZhangFu, "老头子一准不喜欢。", 2));

            while (TVTurnedOnTimes < 3)
            {
                if (GameSystem.condition[2])
                {
                    TVTurnedOnTimes++;
                    yield return(SBreak());

                    data.TV.isWork = true;
                }
                yield return(1);
            }
        }