Beispiel #1
0
 public bool Equals(DropPiece other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (Positions.SequenceEqual(other.Positions) &&
         PositionLerp.SequenceEqual(other.PositionLerp) &&
         CurrentState == other.CurrentState &&
         HoldTimer.Equals(other.HoldTimer))
     {
         return(this.DropPieceSimple.Equals(other.DropPieceSimple));
     }
     else
     {
         return(false);
     }
 }