This commit is contained in:
Mikhail 2026-04-20 21:02:09 +08:00
parent 3509552c89
commit 951213e339

View File

@ -187,6 +187,7 @@ namespace DCFApixels.DragonECS
public sealed override void SetRaw(object raw) { component = (T)raw; } public sealed override void SetRaw(object raw) { component = (T)raw; }
protected virtual T CloneComponent(T component) protected virtual T CloneComponent(T component)
{ {
#if DEBUG
switch (_defaultValueCloneMethod) switch (_defaultValueCloneMethod)
{ {
case CloneMethod.Set: case CloneMethod.Set:
@ -196,6 +197,7 @@ namespace DCFApixels.DragonECS
case CloneMethod.ICloneable: case CloneMethod.ICloneable:
return (T)_defaultValueCloneable.Clone(); return (T)_defaultValueCloneable.Clone();
} }
#endif
return default; return default;
} }
object ICloneable.Clone() object ICloneable.Clone()