public override int GetHashCode() { unchecked { var hashCode = Resting.GetHashCode(); hashCode = (hashCode * 397) ^ Squeezing.GetHashCode(); hashCode = (hashCode * 397) ^ (int)HandSide; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Resting != null ? Resting.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Squeezing.GetHashCode(); hashCode = (hashCode * 397) ^ (QualificationsOfTree != null ? QualificationsOfTree.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)HandSide; return(hashCode); } }
public IAnimatedBehavior Remapping(Dictionary <QualifiedAnimation, AnimationClip> remapping, Dictionary <BlendTree, BlendTree> blendRemapping) { var newQualificationsOfTree = QualificationsOfTree .Select(qualification => remapping.ContainsKey(qualification) ? qualification.NewInstanceWithClip(remapping[qualification]) : qualification) .ToList(); var newSqueezing = remapping.ContainsKey(Squeezing) ? Squeezing.NewInstanceWithClip(remapping[Squeezing]) : Squeezing; var newBlendRemapping = blendRemapping.ContainsKey(Resting) ? blendRemapping[Resting] : Resting; return(Of(newBlendRemapping, newSqueezing, newQualificationsOfTree, HandSide)); }
protected bool Equals(PuppetToAnalogAnimatedBehavior other) { return(Equals(Resting, other.Resting) && Squeezing.Equals(other.Squeezing) && Equals(QualificationsOfTree, other.QualificationsOfTree) && HandSide == other.HandSide); }
protected bool Equals(AnalogAnimatedBehavior other) { return(Resting.Equals(other.Resting) && Squeezing.Equals(other.Squeezing) && HandSide == other.HandSide); }