Пример #1
0
    public void StartSentenceGame()
    {
        //DestroyImmediate(title);

        //var t = Instantiate(titlepanelForGame) as GameObject;
        //title.transform.SetParent(bg.transform, false);
        tbar  = title.transform.Find("Timer").gameObject;
        count = title.transform.Find("Count").GetComponent <QuestionCountController>();
        count.SetCallBack(GameFinishFunc);
#if TEST
        //Sentence_DataLoader.SetSentenceIndex(startSentenceIndex);
        Sentence_DataLoader.ClearData();
        Sentence_DataLoader.PrepareOriginalData();
        Sentence_DataLoader.Sentence_InitList();
#else
        Sentence_DataLoader.ClearData();
        Sentence_DataLoader.PrepareOriginalData();
        Sentence_DataLoader.Sentence_Shuffle();
        Sentence_DataLoader.Sentence_InitList();
#endif

#if TEST
        Sentence_DataLoader.CheckSymbol();
#endif
        // 2020-08-25 여기서 기획 변경. Time Attack 모드로 OX game 일괄 통일.
        // 아래 부분 주석처리함.
        GameModeManager.SetTimeAttackMode();

        CreateSentenceCard();
    }
Пример #2
0
    public void StartOXGame()
    {
        //DestroyImmediate(title);

        //var t = Instantiate(titlepanelForGame) as GameObject;
        //t.transform.SetParent(bg.transform, false);

        tbar  = title.GetComponent <TitlePanelController>().timer;
        count = title.GetComponent <TitlePanelController>().count.GetComponent <QuestionCountController>();
        count.SetCallBack(GameFinishFunc);
        //bg.GetComponent<BackgroundController>().count.gameObject.SetActive(false);

        //combo = Instantiate(combopanel) as GameObject;
        //combo.transform.SetParent(bg.transform, false);
        //combo.GetComponent<ComboController>().HideCombo();

        bg.GetComponent <BackgroundController>().finish.transform.SetAsLastSibling();
        bg.GetComponent <BackgroundController>().timeup.transform.SetAsLastSibling();
#if TEST
        OX_DataLoader.ClearData();
        OX_DataLoader.PrepareOriginalData();
        OX_DataLoader.OX_InitWordList();
        CreateCard();
#else
        OX_DataLoader.ClearData();
        OX_DataLoader.PrepareOriginalData();
        OX_DataLoader.OX_Shuffle();
        OX_DataLoader.OX_InitWordList();
        CreateCard();
#endif
        if (GameModeManager.IsTutorialFirstTime())
        {
            tutorial_panel = Instantiate(tutorialpanel);
            tutorial_panel.transform.SetParent(uicanvas.transform, false);
            tutorial_panel.GetComponent <TutorialController>().CradlePanel();
            destroyCard.transform.Find("Panel").GetComponent <CardMove>().TouchEnable(false);
        }

        // 2020-08-25 여기서 기획 변경. Time Attack 모드로 OX game 일괄 통일.
        // 아래 부분 주석처리함.
        GameModeManager.SetTimeAttackMode();
    }