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; } }
public void ExportScript(MonoBehaviour monoBehaviour) { Debug.Log("Start script export of " + monoBehaviour.GetType()); assets.ExportScript(monoBehaviour.GetType(), false, true); }