Skip to content

Commit

Permalink
Fixed bug with ranges on ChangeMovement (changing velocity range woul…
Browse files Browse the repository at this point in the history
…d set the wrong values when X and Y had different ranges)
  • Loading branch information
DiogoDeAndrade committed Jan 27, 2024
1 parent 7c507a4 commit df09d48
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/OkapiKit/Scripts/Actions/ActionChangeMovement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Assets/OkapiKit/package.json
Original file line number Diff line number Diff line change
@@ -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" ],
Expand Down
4 changes: 2 additions & 2 deletions Assets/OkapiKitSamples/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit df09d48

Please sign in to comment.