void Awake() { _instance = this; _transform = GetComponent <Transform>(); camera = GetComponent <Camera>(); _originalOrthoSize = camera.orthographicSize; var behaviors = GetComponents <ICameraBaseBehavior>(); for (var i = 0; i < behaviors.Length; i++) { addCameraBaseBehavior(behaviors[i]); } }
void OnApplicationQuit() { _instance = null; }