回答編集履歴
1
SmoothStepについてコメントを追記
answer
CHANGED
@@ -95,6 +95,7 @@
|
|
95
95
|
var timeLeft = transitionDuration;
|
96
96
|
while (timeLeft > 0.0f)
|
97
97
|
{
|
98
|
+
// Lerpの代わりにSmoothStepを使えばもっと遷移が自然に見えるかもしれない
|
98
99
|
this.actualWeight = Mathf.Lerp(
|
99
100
|
initialWeight,
|
100
101
|
targetWeight,
|