Esempio n. 1
0
    public void ArcadeModel()
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        string difficultys = "";

        for (int i = 0; i < GameOptionService.DifficultyLevels.Count; i++)
        {
            difficultys += "|" + GameOptionService.DifficultyLevels[i];
        }

        string types = "";

        for (int i = 0; i < GameOptionService.PoemTypes.Count; i++)
        {
            types += "|" + GameOptionService.PoemTypes[i];
        }

        data.Add("GameType", "normal");
        data.Add("DifficultyLevels", difficultys);
        data.Add("PoemTypes", types);

        SDKManager.Log("StartGame", data);

        GameLogic.s_GameModel = GameModel.Arcade;
        PoemLibrary.SetPoemByTag(GameOptionService.DifficultyLevels, GameOptionService.PoemTypes);
        ApplicationStatusManager.EnterStatus <GameStatus>();
    }
    static void NewPoem()
    {
        currentPoemData = PoemLibrary.GetRandomPoem();

        s_currentLine = 2;

        CreateAnswer();
    }
Esempio n. 3
0
    void OnClickExercise(InputUIOnClickEvent e)
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("GameType", "singlePoem");
        data.Add("poemName", s_poemData.m_key);
        SDKManager.Log("StartGame", data);

        UIManager.CloseUIWindow(this);

        GameLogic.s_GameModel = GameModel.normal;
        PoemLibrary.SetPoemByName(s_poemData.m_key);
        ApplicationStatusManager.EnterStatus <GameStatus>();
    }
    void OnClickExercise(InputUIOnClickEvent e)
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("GameType", "FavoritesList");
        data.Add("FavoritesListCount", FavoritesService.GetFavoritesList().Count);
        SDKManager.Log("StartGame", data);

        UIManager.CloseUIWindow(this);

        GameLogic.s_GameModel = GameModel.normal;
        PoemLibrary.SetPoemByFavorite(FavoritesService.GetFavoritesList());
        ApplicationStatusManager.EnterStatus <GameStatus>();
    }
    public override void OnEnterStatus()
    {
        SDKManager.Init();
        //SDKManager.LoadAD(ADType.Banner);
        SDKManager.LoadAD(ADType.Interstitial);

        FavoritesService.Init();
        PoemLibrary.Init();

        LanguageManager.Init();
        GameOptionService.Init();

        SDKManager.Log("LaunchGame", null);

        m_window = UIManager.OpenUIWindow <HotUpdateWindow>();

        HotUpdateManager.StartHotUpdate(ReceviceHotUpdateProgress);
    }