Beispiel #1
0
 private void OnEnable()
 {
     targetTransform            = ((RoadHandle)target).transform;
     road                       = targetTransform.parent.GetComponent <Road>();
     targetTransform.hasChanged = false;
 }
Beispiel #2
0
 private void OnEnable()
 {
     road      = (Road)target;
     transform = road.transform;
 }