add easing to forthington movement

This commit is contained in:
minenice55 2023-01-31 23:46:10 -05:00
parent d72cf77865
commit 892787c32d

View file

@ -136,12 +136,8 @@ namespace HeavenStudio.Games
if(lengthHolder != lengthShown)
{
started = true;
//convert to 2 decimal places
var f = currentBeat;
//f = Mathf.Round(f * 10.0f) * 0.1f;
Rally(serveBeat + (int)f, wantSilent, lengthHolder);
//Debug.Log("Beat Loop: " + serveBeat + f);
//Debug.Log("Serve Beat: " + serveBeat);
}
}
}
@ -302,7 +298,7 @@ namespace HeavenStudio.Games
}
else
{
tweenForForth = Forthington.gameObject.transform.DOMoveZ(wayPointZForForth, .15f);
tweenForForth = Forthington.gameObject.transform.DOMoveZ(wayPointZForForth, .15f).SetEase(Ease.InOutCubic);
}
}