Beispiel #1
0
 private void OnDrawGizmosSelected()
 {
     if (CameraTrack != null)
     {
         CameraTrack.DrawGizmo();
     }
 }
Beispiel #2
0
        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);
        }