Console error

This commit is contained in:
Martin 2023-01-06 12:33:55 +01:00
parent 85558c3d57
commit 03c7f9b16f

View File

@ -54,7 +54,7 @@ class PooledObject<T extends Component> {
this.instancedNode = instantiate(prefab);
this.instancedComponent = <T>this.instancedNode.getComponent(componentName);
if (this.instancedComponent == null) {
console.log("Object " + prefab.name + " does not have component " + componentName);
console.error("Object " + prefab.name + " does not have component " + componentName);
}
this.clear();