Hi Ales, you don’t assign the WeaponScriptableObject to the field. You need to create a prefab that contains the GarlicController script, then assign the prefab to the field. You need to assign the prefab of the projectile that the weapon spawns there.
I know but when i try to add it there i didnt see it i can only add prefab from scene and when i tried that there where the problem come out it write there Type mismatch https://imgur.com/a/ar4sN9U and i dont know how to fix that
I open up the Garlic Weapon (weapon Scriptable Object) than i click on the thing next to prefab and this will pop up. I can only add things from scene and when i add garlic weapon to scene and than i will put it there it will type type mismatch. This is what i see when i am putting things in the space(or how its called in English its right next to prefab text in the inspector). https://imgur.com/a/Ak8fhon
Ales, are you dragging the Garlic Weapon in from the Hierarchy? Did you prefab your Garlic Weapon GameObject before dragging it into the box?
If you already have a prefab copy of it, don’t select it using the poup. Drag the prefab from the project window into the field. If it is in a different folder, you can lock the Inspector after selecting the Weapon Scriptable Object first, then navigate to the folder containing your prefab. Below is a picture of where the lock icon is.