private void Start() { cameraToFollow = GetComponent <Camera>(); Assert.IsNotNull(cameraToFollow, "Cant find Camera component for ERPathCamera"); pathAdapter = modularRoad.GetComponent <ERPathAdapter>(); Assert.IsNotNull(pathAdapter, $"Cant find ERPathAdapter for road {modularRoad.name}"); }
private void Start() { pathAdapter = modularRoad.GetComponent <ERPathAdapter>(); Assert.IsNotNull(pathAdapter, $"Cant find ERPathAdapter for road {modularRoad.name}"); }