//void RegMatParser(IMatParser parser) //{ // matParsers[parser.shaderName] = parser; //} public void InitMatParser(string shader, MyJson.JsonNode_Object json) { string name = shader.Replace("%2f", "/"); //Debug.Log("InitMatParser:" + name); matParsers[name] = new MatParser(name, json); }