Beispiel #1
0
        internal void WriteScript(MonoBehaviour component, bool overwrite)
        {
            // TODO: Find Interfaces as well
            Type tp = component.GetType();

            while (tp != typeof(MonoBehaviour))
            {
                assetHelper.ExportScript(tp, false, overwrite);
                tp = tp.BaseType;
            }
        }
Beispiel #2
0
 public void ExportScript(MonoBehaviour monoBehaviour)
 {
     Debug.Log("Start script export of " + monoBehaviour.GetType());
     assets.ExportScript(monoBehaviour.GetType(), false, true);
 }