예제 #1
0
 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}");
 }
예제 #2
0
 private void Start()
 {
     pathAdapter = modularRoad.GetComponent <ERPathAdapter>();
     Assert.IsNotNull(pathAdapter, $"Cant find ERPathAdapter for road {modularRoad.name}");
 }