mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 13:19:08 +08:00
[unity] Fixed a potential null reference exception reported by a user.
This commit is contained in:
parent
dd1b3aaa50
commit
7c2e2cb7ef
@ -182,7 +182,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
/// <summary>Progresses the AnimationState according to the given deltaTime, and applies it to the Skeleton. Use Time.deltaTime to update manually. Use deltaTime 0 to update without progressing the time.</summary>
|
/// <summary>Progresses the AnimationState according to the given deltaTime, and applies it to the Skeleton. Use Time.deltaTime to update manually. Use deltaTime 0 to update without progressing the time.</summary>
|
||||||
public void Update (float deltaTime) {
|
public void Update (float deltaTime) {
|
||||||
if (!valid)
|
if (!valid || state == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
deltaTime *= timeScale;
|
deltaTime *= timeScale;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user