I haven't prog for a while now and I am starting a 3D game project. I am trying to make an healthGlobe spawn when I kill an ennemi, so far, everything works out, exept for the material.
I have my material named pink in my assets "Assets/Resources/pink.mat"
I have those lines of code : [My code][2]
Debug.log said my variable is null [Null Ref][3]
What is wrong? I can't seem to figure out...