void OnDestroy() { if (Instance == this) { Instance = null; } }
void Awake() { Instance = this; foreach (var v in target_pivot) { var cam = v.GetComponent <Camera>(); if (cam != null) { CameraOriginalOrthographicSize.Add(cam.orthographicSize); } else { CameraOriginalOrthographicSize.Add(0); } } }