룰렛에 mvp 패턴 추가중

- 룰렛 결과에 따른 재화 획득 기능 추가
This commit is contained in:
Mingu Kim
2025-06-19 21:29:50 +09:00
parent b125bc748a
commit 8cae00f132
8 changed files with 72 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ using System.Collections;
namespace TON
{
// View ?
public class Roulette : MonoBehaviour
{
[SerializeField] private Transform piecePrefab; // 룰렛에 표시되는 정보 프리팹
@@ -105,7 +106,7 @@ namespace TON
Debug.Log($"SelectedIndex:{selectedIndex}, angle:{angle}");
Debug.Log($"left/right/random:{leftOffset}/{rightOffset}/{randomAngle}");
Debug.Log($"targetAngle:{targetangle}");
isSpinning = true;
StartCoroutine(OnSpin(targetangle, action));
}