빌드 스크립트 추가
This commit is contained in:
@@ -8,7 +8,8 @@ namespace TON
|
||||
public class RoulettePresenter : MonoBehaviour
|
||||
{
|
||||
private PlayerDataManager playerDataManager;
|
||||
|
||||
// ReactiveProperty
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// 싱글톤으로 PlayerDataManager 접근
|
||||
@@ -18,6 +19,8 @@ namespace TON
|
||||
{
|
||||
Debug.LogError("PlayerDataManager가 초기화되지 않았습니다.");
|
||||
}
|
||||
|
||||
// Todo : UI 바인딩
|
||||
}
|
||||
|
||||
// 재화 획득 메서드
|
||||
|
||||
@@ -5,12 +5,14 @@ using UnityEngine.UI;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
// View
|
||||
public class RouletteSpin : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Roulette roulette;
|
||||
[SerializeField] private Button buttonSpin;
|
||||
|
||||
private PlayerDataManager playerDataManager;
|
||||
// Todo : Presenter 변수
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -27,6 +29,8 @@ namespace TON
|
||||
buttonSpin.interactable = false;
|
||||
roulette.Spin(EndOfSpin);
|
||||
});
|
||||
|
||||
// Presenter 생성
|
||||
}
|
||||
|
||||
private void EndOfSpin(RoulettePieceData selectedData)
|
||||
|
||||
Reference in New Issue
Block a user