using System;
using UnityEngine;
using Framework.Services;
namespace Framework.Cameras {
/// Provides access to the current camera
[
ServiceScope(Scope.Scene),
DefaultBinding(typeof(CameraManager))
]
public interface ICameraManager {
/// Triggered when the active camera changes
event Action CameraChanged;
/// Camera that is currently active
///
/// By informing the camera manager about which camera is being used, other services
/// such as a background music or ambient sound service can keep their audio sources
/// attached to the active camera.
///
Camera ActiveCamera { get; set; }
}
} // namespace Framework.Cameras