public void Awake() { if (instance == null) instance = this; else Debug.LogError("More than one CapturePanorama instance detected."); }