์˜ˆ๋ฅผ ๋“ค์–ด ๋ฆฌ๋“ฌ๊ฒŒ์ž„์˜ ๊ฒฐ๊ณผ ํ™”๋ฉด์—์„œ ์ ์ˆ˜, ์ฝค๋ณด, ์ •ํ™•๋„, ํŒ์ • ๊ฐœ์ˆ˜ ๋“ฑ๋“ฑ์„ Lerp๋ฅผ ํ†ตํ•ด ์ตœ์ข… ๊ฐ’๊นŒ์ง€ ์ ์ฐจ ๋„๋‹ฌํ•˜๋„๋ก ํ•œ๋‹ค๊ฑฐ๋‚˜,


์ด ํ…์ŠคํŠธ๋“ค์˜ ํˆฌ๋ช…๋„๋ฅผ ์ ์ฐจ ๋Š˜์–ด๋‚˜๋„๋ก ํ•œ๋‹ค๊ฑฐ๋‚˜ ํ•˜๋Š”๊ฑธ ๋งŒ๋“ค๊ณ ์‹ถ๋‹ค๋ฉด ํ•˜๋“œ์ฝ”๋”ฉ ๋ง๊ณค ๋‹ต์ด์—†์Œ?


ย  ย  ย  ย  t = 0;

ย  ย  ย  ย  while (t <= 1)

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  t += Time.deltaTime / 1;


ย  ย  ย  ย  ย  ย  cover.color = Color.Lerp(black, none, t);


ย  ย  ย  ย  ย  ย  float alpha = Mathf.Lerp(0, 1, t);


ย  ย  ย  ย  ย  ย  score.color = SetColorAlpha(score.color, alpha);

ย  ย  ย  ย  ย  ย  combo.color = SetColorAlpha(combo.color, alpha);

ย  ย  ย  ย  ย  ย  accuracy.color = SetColorAlpha(accuracy.color, alpha);


ย  ย  ย  ย  ย  ย  perfect.color = SetColorAlpha(perfect.color, alpha);

ย  ย  ย  ย  ย  ย  good.color = SetColorAlpha(good.color, alpha);

ย  ย  ย  ย  ย  ย  miss.color = SetColorAlpha(miss.color, alpha);


ย  ย  ย  ย  ย  ย  for (int i = 0; i < textArr.Length; ++i)

ย  ย  ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  ย  ย  textArr[i].color = SetColorAlpha(textArr[i].color, alpha);

ย  ย  ย  ย  ย  ย  }


ย  ย  ย  ย  ย  ย  score.text = Mathf.Lerp(0, GameInfo.S.score, t * t).ToString("f0");

ย  ย  ย  ย  ย  ย  perfect.text = Mathf.Lerp(0, GameInfo.S.perfect, t * t).ToString("f0");

ย  ย  ย  ย  ย  ย  good.text = Mathf.Lerp(0, GameInfo.S.good, t * t).ToString("f0");

ย  ย  ย  ย  ย  ย  miss.text = Mathf.Lerp(0, missCount, t * t).ToString("f0");

ย  ย  ย  ย  ย  ย  combo.text = Mathf.Lerp(0, GameInfo.S.maxCombo, t * t).ToString("f0");

ย  ย  ย  ย  ย  ย  accuracy.text = Mathf.Lerp(0, acc, t * t).ToString("f2") + "%";


ย  ย  ย  ย  ย  ย  yield return null;

ย  ย  ย  ย  }