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); }
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); }