/// <summary>Instantiates a new instance of <see cref="TypeGenerator{T}" />. Subscribes to <see cref="EditorApplication.projectChanged" />.</summary>
 /// <param name="settings">The settings to use for this <see cref="TypeGenerator{T}" />.</param>
 /// <param name="sync">Sync values between the project and the type.</param>
 protected TypeGenerator([NotNull] TypeGeneratorSettings.Settings settings, ISync sync)
 {
     _instance = this;
     _sync     = sync;
     Settings  = settings;
     EditorApplication.projectChanged += OnProjectChanged;
 }
Пример #2
0
 /// <inheritdoc />
 private LayerTypeGenerator([NotNull] TypeGeneratorSettings.Settings settings, ISync sync) : base(settings, sync)
 {
 }