com.wallstop-studios.unity-helpers 2.0.0-rc61 → 2.0.0-rc62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AnimationCopier.cs +4 -11
- package/Editor/AnimationCreator.cs +5 -9
- package/Editor/AnimatorControllerCopier.cs +4 -10
- package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +1 -3
- package/Editor/FitTextureSizeWizard.cs +2 -2
- package/Editor/PrefabCheckWizard.cs +7 -10
- package/Editor/SpriteSettingsApplier.cs +1 -1
- package/Editor/TextureResizerWizard.cs +2 -7
- package/Editor/TextureSettingsApplier.cs +1 -1
- package/Runtime/Core/Extension/ColorExtensions.cs +15 -0
- package/Runtime/Core/Extension/LoggingExtensions.cs +68 -121
- package/Runtime/Core/Helper/Helpers.cs +3 -3
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +489 -0
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs.meta +3 -0
- package/Runtime/Core/Helper/Logging.meta +3 -0
- package/Runtime/Core/Helper/Partials/LogHelpers.cs +1 -1
- package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +2 -6
- package/Runtime/Core/Helper/ReflectionHelpers.cs +149 -35
- package/Runtime/Core/Helper/SpriteHelpers.cs +2 -2
- package/Runtime/Utils/CircleLineRenderer.cs +3 -5
- package/Tests/Runtime/Extensions/LoggingExtensionTests.cs +718 -0
- package/Tests/Runtime/Extensions/LoggingExtensionTests.cs.meta +3 -0
- package/Tests/Runtime/Helper/WallMathTests.cs +1 -1
- package/Tests/Runtime/Random/RandomTestBase.cs +2 -2
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
for (int i = 0; i < TestIterations; ++i)
|
|
17
17
|
{
|
|
18
18
|
float target = PRNG.Instance.NextFloat(-1_000, 1_000);
|
|
19
|
-
float delta = PRNG.Instance.NextFloat(
|
|
19
|
+
float delta = PRNG.Instance.NextFloat(1f, 10f);
|
|
20
20
|
|
|
21
21
|
float insideOffset = delta * PRNG.Instance.NextFloat();
|
|
22
22
|
if (PRNG.Instance.NextBool())
|
|
@@ -737,13 +737,13 @@
|
|
|
737
737
|
for (int i = 0; i < SampleCount; ++i)
|
|
738
738
|
{
|
|
739
739
|
int index = sample(random);
|
|
740
|
-
if (index < 0 || sampleLength
|
|
740
|
+
if (index < 0 || sampleLength < index)
|
|
741
741
|
{
|
|
742
742
|
Assert.Fail("Index {0} out of range", index);
|
|
743
743
|
}
|
|
744
744
|
else
|
|
745
745
|
{
|
|
746
|
-
_samples[index]++;
|
|
746
|
+
_samples[Math.Min(sampleLength - 1, index)]++;
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
|