Esempio n. 1
0
    void Initialize()
    {
        if (!valid)
        {
            return;
        }
        ms = FileHelp.LoadJsonFormatObjectByDataPathRelativePath <MapSettings>
                 (MapSettings.mapSettingsProfilesPath);
        mapData = FileHelp.LoadJsonFormatObjectByDataPathRelativePath <MapData>
                      (string.Format("{0}/{1}.json", ms.mapDataSavePathRelativeToProject, mapName));

        widthDelta             = mapTexTrans.rect.width / mapData.GetMapWidth();
        heightDelta            = mapTexTrans.rect.height / mapData.GetMapWidth();
        staticMark             = new List <GameObject>();
        movingObjRelateMarkDic = new Dictionary <GameObject, GameObject>();
    }