private IContextMenuOption GenerateOption(Tier tier) { return(new ContextMenuOption(() => "Upgrade to " + tier.ToString(), () => GetCost(tier).Format(), () => Iconography.GenerateSprite(_assembly.GetTierParent(tier).gameObject), () => null, () => UI.ContextMenu.ContextMenu.Side.Right, () => UpgradeTo(tier), () => CanUpgradeTo(tier))); }
public Transform GetTierParent(Tier tier) => CurrentAsssembly.GetTierParent(tier);