Exemple #1
0
    public void shiftToServant(Servant to)
    {
        if (to != backGroundPic && backGroundPic.isShowed)
        {
            backGroundPic.hide();
        }
        if (to != menu && menu.isShowed)
        {
            menu.hide();
        }
        if (to != setting && setting.isShowed)
        {
            setting.hide();
        }
        if (to != selectDeck && selectDeck.isShowed)
        {
            selectDeck.hide();
        }
        if (to != room && room.isShowed)
        {
            room.hide();
        }
        if (to != deckManager && deckManager.isShowed)
        {
            deckManager.hide();
        }
        if (to != ocgcore && ocgcore.isShowed)
        {
            ocgcore.hide();
        }
        if (to != selectServer && selectServer.isShowed)
        {
            selectServer.hide();
        }
        if (to != selectReplay && selectReplay.isShowed)
        {
            selectReplay.hide();
        }
        if (to != puzzleMode && puzzleMode.isShowed)
        {
            puzzleMode.hide();
        }
        if (to != aiRoom && aiRoom.isShowed)
        {
            aiRoom.hide();
        }
        if (to != roomList && to != selectServer && roomList.isShowed)
        {
            roomList.hide();
        }

        if (to == backGroundPic && backGroundPic.isShowed == false)
        {
            backGroundPic.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == menu && menu.isShowed == false)
        {
            menu.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == setting && setting.isShowed == false)
        {
            setting.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == selectDeck && selectDeck.isShowed == false)
        {
            selectDeck.show(); BGMController.Instance.StartBGM(BGMController.BGMType.deck);
        }
        if (to == room && room.isShowed == false)
        {
            room.show(); BGMController.Instance.StartBGM(BGMController.BGMType.siding);
        }
        if (to == deckManager && deckManager.isShowed == false)
        {
            deckManager.show(); BGMController.Instance.StartBGM(BGMController.BGMType.deck);
        }
        if (to == ocgcore && ocgcore.isShowed == false)
        {
            ocgcore.show(); BGMController.Instance.StartBGM(BGMController.BGMType.duel);
        }
        if (to == selectServer && selectServer.isShowed == false)
        {
            selectServer.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == selectReplay && selectReplay.isShowed == false)
        {
            selectReplay.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == puzzleMode && puzzleMode.isShowed == false)
        {
            puzzleMode.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == aiRoom && aiRoom.isShowed == false)
        {
            aiRoom.show(); BGMController.Instance.StartBGM(BGMController.BGMType.menu);
        }
        if (to == roomList && !roomList.isShowed)
        {
            roomList.show(); BGMController.Instance.StartBGM(BGMController.BGMType.siding);
        }
    }
    public void shiftToServant(Servant to)
    {
        if (to != backGroundPic && backGroundPic.isShowed)
        {
            backGroundPic.hide();
        }
        if (to != menu && menu.isShowed)
        {
            menu.hide();
        }
        if (to != setting && setting.isShowed)
        {
            setting.hide();
        }
        if (to != selectDeck && selectDeck.isShowed)
        {
            selectDeck.hide();
        }
        if (to != room && room.isShowed)
        {
            room.hide();
        }
        if (to != deckManager && deckManager.isShowed)
        {
            deckManager.hide();
        }
        if (to != ocgcore && ocgcore.isShowed)
        {
            ocgcore.hide();
        }
        if (to != selectServer && selectServer.isShowed)
        {
            selectServer.hide();
        }
        if (to != selectReplay && selectReplay.isShowed)
        {
            selectReplay.hide();
        }
        if (to != puzzleMode && puzzleMode.isShowed)
        {
            puzzleMode.hide();
        }
        if (to != aiRoom && aiRoom.isShowed)
        {
            aiRoom.hide();
        }

        if (to == backGroundPic && backGroundPic.isShowed == false)
        {
            backGroundPic.show();
        }
        if (to == menu && menu.isShowed == false)
        {
            menu.show();
        }
        if (to == setting && setting.isShowed == false)
        {
            setting.show();
        }
        if (to == selectDeck && selectDeck.isShowed == false)
        {
            selectDeck.show();
        }
        if (to == room && room.isShowed == false)
        {
            room.show();
        }
        if (to == deckManager && deckManager.isShowed == false)
        {
            deckManager.show();
        }
        if (to == ocgcore && ocgcore.isShowed == false)
        {
            ocgcore.show();
        }
        if (to == selectServer && selectServer.isShowed == false)
        {
            selectServer.show();
        }
        if (to == selectReplay && selectReplay.isShowed == false)
        {
            selectReplay.show();
        }
        if (to == puzzleMode && puzzleMode.isShowed == false)
        {
            puzzleMode.show();
        }
        if (to == aiRoom && aiRoom.isShowed == false)
        {
            aiRoom.show();
        }
    }
    public void shiftToServant(Servant to)
    {
        if (to != backGroundPic && backGroundPic.isShowed)
        {
            backGroundPic.hide();
        }
        if (menu != null)
        {
            if (to != menu && menu.isShowed)
            {
                menu.hide();
            }
        }
        if (to != setting && setting.isShowed)
        {
            setting.hide();
        }
        if (to != selectDeck && selectDeck.isShowed)
        {
            selectDeck.hide();
        }
        if (to != room && room.isShowed)
        {
            room.hide();
        }
        if (to != deckManager && deckManager.isShowed)
        {
            deckManager.hide();
        }
        if (to != ocgcore && ocgcore.isShowed)
        {
            ocgcore.hide();
        }
        if (to != selectServer && selectServer.isShowed)
        {
            tdoane.gameListForm.SetActive(false);
            selectServer.hide();
        }
        if (to != selectReplay && selectReplay.isShowed)
        {
            selectReplay.hide();
        }
        if (to != puzzleMode && puzzleMode.isShowed)
        {
            puzzleMode.hide();
        }
        if (to != aiRoom && aiRoom.isShowed)
        {
            aiRoom.hide();
        }
        if (to != roomList && to != selectServer && roomList.isShowed)
        {
            roomList.hide();
        }

        if (to == backGroundPic && backGroundPic.isShowed == false)
        {
            backGroundPic.show();
        }
        if (menu != null)
        {
            if (to == menu && menu.isShowed == false)
            {
                menu.show();
            }
        }
        else if ((to == menu || to == selectServer) && startParameter != "")
        {
            quit(); Application.Quit();
        }
        if (to == setting && setting.isShowed == false)
        {
            setting.show();
        }
        if (to == selectDeck && selectDeck.isShowed == false)
        {
            selectDeck.show();
        }
        if (to == room && room.isShowed == false)
        {
            room.show();
        }
        if (to == deckManager && deckManager.isShowed == false)
        {
            deckManager.show();
        }
        if (to == ocgcore && ocgcore.isShowed == false)
        {
            ocgcore.show();
        }
        if (to == selectReplay && selectReplay.isShowed == false)
        {
            selectReplay.show();
        }
        if (to == puzzleMode && puzzleMode.isShowed == false)
        {
            puzzleMode.show();
        }
        if (to == aiRoom && aiRoom.isShowed == false)
        {
            aiRoom.show();
        }
        if (to == roomList && !roomList.isShowed)
        {
            roomList.show();
        }

        if (menu != null)
        {
            if (to == selectServer && selectServer.isShowed == false)
            {
                menu.show();
            }
        }
    }