룰렛 사용하지 않는 코드 제거

This commit is contained in:
Mingu Kim
2025-07-03 21:11:38 +09:00
parent 79f87bc110
commit 92f9dd2bf7
2 changed files with 2 additions and 18 deletions

View File

@@ -73,21 +73,6 @@ namespace TON
Debug.Log($"({roulettePieceData[i].index}) {roulettePieceData[i].description}:{roulettePieceData[i].weight}");
}
}
private int GetRandomIndex()
{
int weight = Random.Range(0, accumulatedWeight);
for (int i = 0; i < roulettePieceData.Length; ++i)
{
if (roulettePieceData[i].weight > weight)
{
return i;
}
}
return 0;
}
public void Bind(RoulettePresenter presenter)
{
@@ -118,7 +103,7 @@ namespace TON
});
}
private System.Collections.IEnumerator OnSpin(float end, System.Action onEnd)
private IEnumerator OnSpin(float end, System.Action onEnd)
{
float current = 0;
float percent = 0;