示例#1
0
    public string InitialMapName = "MapDemo";//初期にロードするマップ名

    void Awake()
    {
        string DirectoryPath = SystemVariables.RootPath + "/Data";

        //JsonIO.JsonImport<SystemScript>(DirectoryPath, "System.json"); 現在読み込むべきシステム変数がないためコメントアウト
        SystemVariables.CopiedFrom(this);
        JsonIO.TiledJsonConvert();

        ///sprite読み込み///
        string jsonPath = SystemVariables.RootPath + "/TiledData";
        string jsonName = "MapDemo_Default";
        string tsxPath  = SystemVariables.RootPath + "/TiledData/tsx";

        LoadSpriteList(jsonPath, jsonName, tsxPath);
    }//Awake時にシステム関係(アイテム情報やマップチップ情報など)をロードして,SystemVariable.Initialize(this)で適用する.