예제 #1
0
    public void Setup(ParseObject item, StrategyDetailList detailList)
    {
        strategyObj = item;
        StrategySteps newS = JsonUtility.FromJson <StrategySteps>((string)item["strategyString"]);

        titleText.text    = newS.strategyTitle;
        detailText.text   = newS.stepInfo;
        starText.text     = ((long)item["stars"]).ToString();
        numberIdText.text = (string )item["numberId"];
        scroll            = detailList;
    }
예제 #2
0
    public void Setup(ParseObject item, StrategyDetailList detailList)
    {
        strategyObj = item;
        StrategySteps newS = JsonUtility.FromJson <StrategySteps>((string)item["strategyString"]);

        titleText.text = newS.strategyTitle;
        descText.text  = newS.stepInfo;
        Translator translator = Camera.main.GetComponent <Translator>();

        mapName.text = translator.translateMapName(item["mapName"] as string);

        scroll = detailList;
    }