private void Start()
        {
            tileController = FindObjectOfType <TileController>();
            tilemapLayers  = FindObjectOfType <TilemapLayerController>();

            previewTile = selectionTileSprite;
        }
Exemplo n.º 2
0
        private void Awake()
        {
            if (!instance)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(gameObject);
            }

            tilemapLayers = FindObjectOfType <TilemapLayerController>();
        }