Nie ma renderera do gameObject
//renderer is attached to mesh not gameobject so...
void Start()
{
// pass true in order to also include disabled or inactive child Renderer
foreach(var rend in GetComponentsInChildren<Renderer>(true))
{
rend.material.color = colorStart;
}
}
AB_498