@@ -26,8 +26,7 @@ namespace AssetStudio
|
||||
case 0: return X;
|
||||
case 1: return Y;
|
||||
case 2: return Z;
|
||||
default:
|
||||
throw new IndexOutOfRangeException("Invalid Vector3 index!");
|
||||
default: throw new ArgumentOutOfRangeException(nameof(index), "Invalid Vector3 index!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +37,7 @@ namespace AssetStudio
|
||||
case 0: X = value; break;
|
||||
case 1: Y = value; break;
|
||||
case 2: Z = value; break;
|
||||
default:
|
||||
throw new IndexOutOfRangeException("Invalid Vector3 index!");
|
||||
default: throw new ArgumentOutOfRangeException(nameof(index), "Invalid Vector3 index!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user