Skip to content

Commit a455b48

Browse files
committed
Changed tween to stop if an exception occurs in the update logic.
1 parent 47f74bc commit a455b48

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [1.0.0] - 2021-10-21
8-
- Initial major release.
9-
107
## [Unreleased]
8+
- Changed tween to stop if an exception occurs in the update logic.
9+
10+
## [1.0.0] - 2021-10-21
11+
- Initial major release.

Runtime/Tween.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class Tween
3232
/// <summary>
3333
/// Package version.
3434
/// </summary>
35-
public static readonly Version Version = new Version(1, 0, 2);
35+
public static readonly Version Version = new Version(1, 0, 1);
3636

3737
private static TweenMono _mono;
3838

@@ -421,6 +421,7 @@ private void UpdateCurrentValue(object value)
421421
catch (Exception e)
422422
{
423423
Debug.LogException(e);
424+
Stop();
424425
}
425426
}
426427

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.davidfdev.tweening",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"displayName": "Tweening Animations by DavidFDev",
55
"description": "An easy solution for complex tweening animations",
66
"unity": "2019.1",

0 commit comments

Comments
 (0)