Hey, i am modifying the inventory system made by brackeys. Unity Asset Store - The Best Assets for Game Making
Now i want to define a c# script into a variable inside the character.js file. It looks like this:
var keyScript = Clone.GetComponent.<Key>();
It gives me an error, i really don’t have a idea what it means. Quack?
Assets/Inventory/Scripts/Character.js(180,52): BCE0138: 'quack' is not a generic definition.
My key script is in the standard assets folder. This prevented some errors
EDIT:
I had to use:
var keyScript = Clone.GetComponent(Key);
This fixed my problem.