Example #1
0
 void Awake()
 {
     _meshRenderer = GetComponent <MeshRenderer>();
     _splineMap    = transform.root.GetComponent <SplineMap>();
     _camera       = _splineMap.transform.GetComponentInChildren <Camera>();
     AssignMaterial();
 }
Example #2
0
 void OnEnable()
 {
     t         = (SplineMap)target;
     GetTarget = new SerializedObject(t);
 }