Esempio n. 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();
    }
Esempio n. 2
0
    void SetMyListSentencePanel()
    {
        Sentence_DataLoader.ClearData();
        Sentence_DataLoader.PrepareAllData();
        Sentence_DataLoader.InitAllSentenceList();
        var list = UserDataManager.Instance.GetUserSentenceList();

        foreach (var item in list)
        {
            int id = item.Key;
            var d  = Sentence_DataLoader.GetSentenceListDataById(id);
            var r  = Instantiate(PrefabManager.Instance.sentenceResultItem);
            {
                string sentence = UIStaticManager.ReplaceUnderline(d.Value[0]);
                r.GetComponent <ResultItem>().SetVocabForMyListSentence(sentence, "");
                SetPreSentence(r.transform, id);
                r.GetComponent <ResultItem>().SetEmptyStar();
                if (UserDataManager.Instance.IsSentenceDataExist(id))
                {
                    r.GetComponent <ResultItem>().SetStar();
                }
            }
        }
    }