mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 08:36:14 +00:00
Console error
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user