public TargetingStrategyButton(ContentControl container, Actor actor, TargetingStrategy strategy, Texture2D texture) { this.container = container; this.Actor = actor; this.TargetingStrategy = strategy; this.texture = texture; }
private Color GetTargetingStrategyColor(TargetingStrategy strategy) { if (player.UnlockedTargetingStrategies.Contains(strategy.Value)) return Color.LightGreen; if (strategy.Cost > player.Gold) return Color.Salmon; return Color.LightGray; }
private void BuyTargettingStrategy(TargetingStrategy item) { if (item != null) { //player.Gold -= item.Cost; player.UnlockedTargetingStrategies.Add(item.Value); } }