private void OnDrawGizmosSelected() { if (CameraTrack != null) { CameraTrack.DrawGizmo(); } }
private void Awake() { // Acquire references _collider = GetComponent <BoxCollider2D>(); // Camera track and whine if it's not found. _cameraTrack = GetComponentInChildren <CameraTrack>(); if (_cameraTrack == null) { Debug.LogError("Room is missing a Camera Track.", gameObject); } _transitions = GetComponentsInChildren <RoomTransition>(); Activate(false); }