Ejemplo n.º 1
0
    /*
     * 弄这个场景和这个脚本算是有点妥协的意思了。。。
     * 屑DontDestroyOnLoad毛病太多
     */

    private void Start()
    {
        //在这里启动游戏说明是要完整测试,所以全部初始化gss以防意外的调试参数造成不必要的麻烦
        GameScoreSettingsIO gss = (GameScoreSettingsIO)Resources.Load("GameScoreAndSettings");

        //使刚进入游戏一定显示标题画面,顺便初始化(title那里)
        gss.MajoSceneToTitle = false;

        LoadingCtrl.LoadScene(1, true);
    }
Ejemplo n.º 2
0
    //没有适配多人游戏!
    /// <summary>
    /// 选择魔法少女(检查视图注入)
    /// </summary>
    public void SelectedMahoshoujo(int id)
    {
        //确认音效 多人游戏的时候前2个玩家选择后播放。
        //  EasyBGMCtrl.easyBGMCtrl.PlaySE(0);
        //最后一个玩家,播放进入魔女结界的音效
        EasyBGMCtrl.easyBGMCtrl.PlaySE(4);


        //麻花焰单独处理
        if (id == 5)
        {
            if (gameScoreSettingsIO.MagicalGirlsDie[0])
            {
                //挂了,选择为QB
                gameScoreSettingsIO.SelectedGirlInGame[0] = Variable.PlayerFaceType.QB;//玩家1,联机的话要在处理 0:玩家1
            }
            else
            {
                //没挂,正常选择
                gameScoreSettingsIO.SelectedGirlInGame[0] = (Variable.PlayerFaceType)id;//玩家1,联机的话要在处理0:玩家1


                //应该所有玩家都选择完在进行处理
                //切换场景
                LoadingCtrl.LoadScene(2);
            }

            return;
        }


        else if (gameScoreSettingsIO.MagicalGirlsDie[id])
        {
            //挂了,选择为QB 0.0.7暂时禁用
            //gameScoreSettingsIO.SelectedGirlInGame[0] = Variable.PlayerFaceType.QB;//玩家1,联机的话要在处理 0:玩家1
        }
        else
        {
            //没挂,正常选择
            gameScoreSettingsIO.SelectedGirlInGame[0] = (Variable.PlayerFaceType)id;//玩家1,联机的话要在处理0:玩家1

            //应该所有玩家都选择完在进行处理
            //切换场景
            LoadingCtrl.LoadScene(2);
        }
    }
Ejemplo n.º 3
0
 /// <summary>
 /// (顺利打完某魔女)从结算界面返回到魔女选择part或者staff
 /// </summary>
 void ReturnToMajoOrStaff()
 {
     //瓦夜打完,结算界面结束后进入staff / 或者五色全挂,进入staff
     if (StageCtrl.gameScoreSettings.BattlingMajo == Variable.Majo.Walpurgisnacht || StageCtrl.gameScoreSettings.AllDie)
     {
         //预先修改一些变量,防止出现Bug
         StageCtrl.gameScoreSettings.MajoSceneToTitle = false;
         if (StageCtrl.gameScoreSettings.BattlingMajo == Variable.Majo.Walpurgisnacht)
         {
             //通关设置
             StageCtrl.gameScoreSettings.Success = true;
         }
         LoadingCtrl.LoadScene(4, false);
     }
     //其他魔女打完,结算界面结束后进入魔女选择part
     else if (StageCtrl.gameScoreSettings.BattlingMajo != Variable.Majo.Walpurgisnacht)
     {
         LoadingCtrl.LoadScene(1, false);
     }
 }
Ejemplo n.º 4
0
    /// <summary>
    /// 随机staff用。随机杀死魔法少女(?)
    /// </summary>
    public void RandomKillGirl()
    {
        int i = Random.Range(0, 11);

        // i == 0 :全员幸存
        if (i == 1) //只有鹿目圆死亡
        {
            gameScoreSettingsIO.MagicalGirlsDie[2] = true;
        }
        //只有可怜的蓝毛死亡
        else if (i == 2)
        {
            gameScoreSettingsIO.MagicalGirlsDie[4] = true;
        }
        //只有杏子死亡
        else if (i == 3)
        {
            gameScoreSettingsIO.MagicalGirlsDie[1] = true;
        }
        //除了蓝毛红毛都死了
        else if (i == 4)
        {
            gameScoreSettingsIO.MagicalGirlsDie[0] = true;
            gameScoreSettingsIO.MagicalGirlsDie[2] = true;
            gameScoreSettingsIO.MagicalGirlsDie[3] = true;
        }
        //除了学姐都死了
        else if (i == 5)
        {
            gameScoreSettingsIO.MagicalGirlsDie[0] = true;
            gameScoreSettingsIO.MagicalGirlsDie[1] = true;
            gameScoreSettingsIO.MagicalGirlsDie[2] = true;
            gameScoreSettingsIO.MagicalGirlsDie[4] = true;
        }
        //只有学姐死了
        else if (i == 6)
        {
            gameScoreSettingsIO.MagicalGirlsDie[3] = true;
        }
        //只有鹿目圆和沙耶加死亡
        else if (i == 7)
        {
            gameScoreSettingsIO.MagicalGirlsDie[4] = true;
            gameScoreSettingsIO.MagicalGirlsDie[2] = true;
        }
        //除了粉焰全挂了
        else if (i == 8)
        {
            gameScoreSettingsIO.MagicalGirlsDie[1] = true;
            gameScoreSettingsIO.MagicalGirlsDie[3] = true;
            gameScoreSettingsIO.MagicalGirlsDie[4] = true;
        }
        //全挂了
        else if (i == 9)
        {
            gameScoreSettingsIO.MagicalGirlsDie[0] = true;
            gameScoreSettingsIO.MagicalGirlsDie[1] = true;
            gameScoreSettingsIO.MagicalGirlsDie[2] = true;
            gameScoreSettingsIO.MagicalGirlsDie[3] = true;
            gameScoreSettingsIO.MagicalGirlsDie[4] = true;
        }
        //轮回吧,吼姆拉
        else
        {
            gameScoreSettingsIO.MagicalGirlsDie[0] = true;
        }

        LoadingCtrl.LoadScene(4, false);
    }