// Create a new shovel icon. public ShovelIcon CreateShovelIcon() { ShovelIcon shovelIcon = Instantiate <ShovelIcon>(_shovelIconPrefab); shovelIcon.transform.SetParent(_canvasRoot, false); return(shovelIcon); }
public void SetShovelIcon(ShovelIcon icon) { _shovelIcon = icon; _shovelIcon.SetAttachPoint(_iconAttachPoint); _shovelIcon.SetText(_shovelData.Name); }