From df09d4855103879e4c7ceb14d1b4cade0a0eca42 Mon Sep 17 00:00:00 2001 From: Diogo Andrade Date: Sat, 27 Jan 2024 12:35:14 +0000 Subject: [PATCH] Fixed bug with ranges on ChangeMovement (changing velocity range would set the wrong values when X and Y had different ranges) --- Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs | 2 +- Assets/OkapiKit/package.json | 2 +- Assets/OkapiKitSamples/package.json | 4 ++-- ReleaseNotes.md | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs b/Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs index 177f56cc..ef6b2744 100644 --- a/Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs +++ b/Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs @@ -321,7 +321,7 @@ public override void Execute() } else { - velocity = new Vector2(Random.Range(minVelocity.x, maxVelocity.y), Random.Range(minVelocity.y, maxVelocity.y)); + velocity = new Vector2(Random.Range(minVelocity.x, maxVelocity.x), Random.Range(minVelocity.y, maxVelocity.y)); } if (useRotation) diff --git a/Assets/OkapiKit/package.json b/Assets/OkapiKit/package.json index e5308880..3c110ed2 100644 --- a/Assets/OkapiKit/package.json +++ b/Assets/OkapiKit/package.json @@ -1,7 +1,7 @@ { "name": "com.videojogoslusofona.okapikit", "displayName": "OkapiKit", - "version": "1.9.1", + "version": "1.9.2", "unity": "2022.3", "description": "OkapiKit is a toolkit for creation of simple games without code.", "keywords": [ "kit" ], diff --git a/Assets/OkapiKitSamples/package.json b/Assets/OkapiKitSamples/package.json index eabd171d..2f69aa7f 100644 --- a/Assets/OkapiKitSamples/package.json +++ b/Assets/OkapiKitSamples/package.json @@ -1,14 +1,14 @@ { "name": "com.videojogoslusofona.okapikit.samples", "displayName": "OkapiKit Samples", - "version": "1.9.1", + "version": "1.9.2", "unity": "2022.3", "description": "OkapiKit is a toolkit for creation of simple games without code. This package is just the samples for OkapiKit, they are not required to use Okapi Kit, and requires the Okapi Kit package.", "keywords": [ "okapi", "samples" ], "category": "samples", "dependencies": {}, "relatedPackages": { - "com.videojogoslusofona.okapikit": "1.9.1" + "com.videojogoslusofona.okapikit": "1.9.2" }, "author": { "name": "Diogo de Andrade - ULHT", diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 160f6508..2970dbe1 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,9 @@ # Release Notes +## V1.9.2 + +- Fixed bug with ranges on ChangeMovement (changing velocity range would set the wrong values when X and Y had different ranges) + ## V1.9.1 - Added else actions to OnInput