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; }
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; }