private void ParseWEP(string path, bool UseDebug) { WEP parser = new WEP(); parser.UseDebug = UseDebug; parser.Parse(path); parser.BuildPrefab(true); }
public void onLoad() { foreach (Transform child in container.transform) { Destroy(child.gameObject); } WEP wepModelParser = new WEP(); wepModelParser.Parse(conf.VSPath + "OBJ/" + WEPFilePath + ".WEP"); GameObject wepGO = wepModelParser.BuildGameObject(); wepGO.transform.parent = container.transform; wepGO.transform.localPosition = Vector3.zero; wepGO.transform.localRotation = new Quaternion(); wepGO.transform.localScale = Vector3.one * 25; actualiseCAT(); }