Hi guys, upgrading to unity 5 from 4 broke my game in many places. One of these places is here:
var script : GameObject;
script = gameObject.GetComponentInChildren(BodyParticleScript);
This throws the error “Cannot convert ‘BodyParticleScript’ to ‘UnityEngine.GameObject’.”
Are scripts not considered GameObjects anymore? Does anyone know how to fix this?