Okay I started today with C# in Unity and was wondering if someone can hep me with this for loop:
foreach(MeshRenderer mr in gameObject.GetComponentInChildren<MeshRenderer>()){
mr.enabled=real;
}
foreach(MeshCollider col in gameObject.GetComponentInChildren<MeshRenderer>()){
col.isTrigger= !real;
}
All the error codes monodevelope gives me instantlly make my brain freeze over.
Even if you can just give me a goor refrence to work with.