Example #1
0
    public override void OnExit(params object[] argv)
    {
        GameObject nextLevelButton = argv[0] as GameObject;

        nextLevelButton.SetActive(true);
        X.Res.FuncParamConfig config = FuncMgr.GetInstance().GetConfigByID(1);
        if (config != null)
        {
            uint curlevelid = LevelMgr.GetInstance().CurLevelID;
            //int showcount = XPlayerPrefs.GetInt(Evaluation_Tag);
            for (int i = 0; i < config.Params1.Count; i++)
            {
                if (config.Params1[i] == curlevelid /*&& config.Params2[i] > showcount*/)
                {
                    SDKMgr.GetInstance().Track(SDKMsgType.OnCallEvaluation);
                    //showcount++;
                    //XPlayerPrefs.SetInt(Evaluation_Tag, showcount);
                    return;
                }
            }
        }
    }