Hi everyone.
I’m using the 3rd person shooter of unity 3, but now i removed the direction lights of the scene and placed point lights. And when my player died, Unity gives me a error:
NullRefenceException
CharacterShadow.LateUpdate ()(at Assets/Demo Scene Script/CharacterShadow.cs:168)
What should i do te fix it?
Someone can help me?
*EDIT:
The error says something about this line
child.camera.targetTexture = shadowmap;
Projector proj = (Projector)child.GetComponent(typeof(Projector));
proj.material.SetTexture("_ShadowTex", shadowmap);