mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-04-19 13:28:54 +00:00
Console error
This commit is contained in:
parent
85558c3d57
commit
03c7f9b16f
@ -54,7 +54,7 @@ class PooledObject<T extends Component> {
|
|||||||
this.instancedNode = instantiate(prefab);
|
this.instancedNode = instantiate(prefab);
|
||||||
this.instancedComponent = <T>this.instancedNode.getComponent(componentName);
|
this.instancedComponent = <T>this.instancedNode.getComponent(componentName);
|
||||||
if (this.instancedComponent == null) {
|
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();
|
this.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user