Ejemplo n.º 1
0
 public override void OnInspectorGUI()
 {
     if (AssetType == TextAssetType.Manifest)
     {
         ManifestEditor.OnInspectorGUI();
     }
     else if (AssetType == TextAssetType.MakerListFile)
     {
         MakerListfileEditor.OnInspectorGUI();
     }
     base.OnInspectorGUI();
 }
Ejemplo n.º 2
0
        internal void OnEnable()
        {
            string path = AssetDatabase.GetAssetPath(target);

            if (path.EndsWith("manifest.xml"))
            {
                AssetType = TextAssetType.Manifest;
                ManifestEditor.OnEnable(path);
            }
            else if (path.ToLower().Contains("list/maker/") && path.ToLower().EndsWith(".csv"))
            {
                AssetType = TextAssetType.MakerListFile;
                MakerListfileEditor.OnEnable(path, this);
            }
            else
            {
                AssetType = TextAssetType.Other;
            }
        }