Esempio n. 1
0
    private void SpawnSelectionIndicator(UIButton button)
    {
        SelectionIndicator newSelectionIndicator = Instantiate(prefab_selectionIndicator, button.sprite_ButtonTop.transform.position, Quaternion.identity).GetComponent <SelectionIndicator>();

        newSelectionIndicator.InitializeIndicator(button.sprite_ButtonTop.color, button.sprite_ButtonTop.size);
    }
Esempio n. 2
0
    private void SpawnSelectionIndicator(Tile tile)
    {
        SelectionIndicator newSelectionIndicator = Instantiate(prefab_selectionIndicator, tile.spriteTop.transform.position, Quaternion.identity, tile.spriteTop.transform).GetComponent <SelectionIndicator>();

        newSelectionIndicator.InitializeIndicator(tile.spriteTop.color);
    }