Exemplo n.º 1
0
        public static MapGenerator GetMapGenerator()
        {
            if(mapInstance == null)
            {
                mapInstance = FindObjectOfType<MapGenerator>();

                if(mapInstance)
                {
                    mapInstance.Init();
                }
            }

            return mapInstance;
        }
Exemplo n.º 2
0
        void Awake()
        {
            mapInstance = this;

            Init();
        }