perf : 异常处理替换为YOO的异常类
This commit is contained in:
@@ -133,7 +133,7 @@ namespace YooAsset
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
if (Childs.Contains(child))
|
||||
throw new Exception($"The child node {child.GetType().Name} already exists !");
|
||||
throw new YooInternalException($"The child node {child.GetType().Name} already exists !");
|
||||
#endif
|
||||
|
||||
Childs.Add(child);
|
||||
|
||||
Reference in New Issue
Block a user