void OnDestroy() { if (this == Instance) { Instance = null; } }
public void Awake() { if (Instance) { Debug.Log("It's should be only one center camera on field"); Destroy(this); return; } Instance = this; previousNormalizedSize = normalizedSize; }
public void Awake() { Instance = this; }