룰렛에 mvp 패턴 추가중
- 룰렛 결과에 따른 재화 획득 기능 추가
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user