Exemplo n.º 1
0
    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
    }