public bool Equals(PickupData other) { if (other == null) { return(false); } return(Pickups.SequenceEqual(other.Pickups) && LastCollectedIndex.Equals(other.LastCollectedIndex) && PickupsCollected.SequenceEqual(other.PickupsCollected)); }