mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
fix
This commit is contained in:
parent
4eb0922530
commit
ced7d2a547
@ -42,7 +42,7 @@ namespace DCFApixels.DragonECS
|
||||
if (_components == null) { return; }
|
||||
foreach (var item in _components)
|
||||
{
|
||||
item.OnValidate(gameObject);
|
||||
item?.OnValidate(gameObject);
|
||||
}
|
||||
}
|
||||
private void OnDrawGizmos()
|
||||
@ -50,7 +50,7 @@ namespace DCFApixels.DragonECS
|
||||
if (_components == null) { return; }
|
||||
foreach (var item in _components)
|
||||
{
|
||||
item.OnGizmos(transform, IComponentTemplate.GizmosMode.Always);
|
||||
item?.OnGizmos(transform, IComponentTemplate.GizmosMode.Always);
|
||||
}
|
||||
}
|
||||
private void OnDrawGizmosSelected()
|
||||
@ -58,7 +58,7 @@ namespace DCFApixels.DragonECS
|
||||
if (_components == null) { return; }
|
||||
foreach (var item in _components)
|
||||
{
|
||||
item.OnGizmos(transform, IComponentTemplate.GizmosMode.Selected);
|
||||
item?.OnGizmos(transform, IComponentTemplate.GizmosMode.Selected);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user