// Start is called before the first frame update void Start() { LegoBlockInfo[,] legoBlockMap = JsonHelper_TwodimensionalArray.LoadJson <LegoBlockInfo>("savedata2.json"); legoCreateTex_ = gameObject.GetComponent <LegoCreateTex>(); legoCreateTex_.CreateTexture(legoBlockMap); ConvertLegoBlockInfo2LandscapeInfo(legoBlockMap); UpdateLandscapeMap(); }
protected void Start() { LegoData.CalibrationData.GetCalibrationData(); rawLegoImageWidth_ = (int)Mathf.Abs(LegoData.CalibrationData.baseEdgeXY[0].x - LegoData.CalibrationData.baseEdgeXY[3].x); rawLegoImageHeight_ = (int)Mathf.Abs(LegoData.CalibrationData.baseEdgeXY[0].y - LegoData.CalibrationData.baseEdgeXY[3].y); landscapeMapList_ = new List <LegoBlockInfo[, ]>(); createNumCount_ = 0; timeLeft__15FPS_ = 0.04f; timeLeft__1FPS_ = 1.0f; legoCreateTex_ = gameObject.GetComponent <LegoCreateTex>(); }