void Awake() { if( instance != null) { DestroyImmediate(gameObject); return; } instance = this; //This is so that git will not constantly want to commit the material of the globe #if UNITY_EDITOR globeMat = globeRenderer.material; #else globeMat = globeRenderer.sharedMaterial; #endif }