public override void OnStart() { if (!Bags.Any()) { Bags.Add(new Bag(30)); } InputEventManager.DoubleClick += HandleDoubleClick; }
public bool DeepContains(string colour) { return(Bags.Any(t => t.Item1.Colour == colour || t.Item1.DeepContains(colour) )); }
public bool Contains(string colour) { return(Bags.Any(t => t.Item1.Colour == colour)); }