Skip to content

Commit 5a17049

Browse files
committed
delta time didn't need to be a member variable
1 parent 7deebba commit 5a17049

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Assets/FbxExporters/RotateModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ public class RotateModel : MonoBehaviour
2222
private float timeOfLastUpdate = float.MaxValue;
2323
#endif
2424

25-
private float deltaTime = 0;
26-
2725
public float GetSpeed()
2826
{
2927
return speed;
3028
}
3129

3230
public void Rotate()
3331
{
32+
float deltaTime = 0;
3433
#if UNITY_EDITOR
3534
deltaTime = Time.realtimeSinceStartup - timeOfLastUpdate;
3635
if(deltaTime <= 0){

0 commit comments

Comments
 (0)