Skip to content

Commit

Permalink
fix update order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
i-saint committed Apr 13, 2018
1 parent fd7576b commit 86d961c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public void Update()

void LateUpdate()
{
// currentTime maybe updated after Update() by other GameObjects
if (!updateStarted && lastUpdateTime != currentTime)
Update();

if (!updateStarted)
return;
updateStarted = false;
Expand Down

0 comments on commit 86d961c

Please sign in to comment.