룰렛 mvp 패턴 적용 중...
This commit is contained in:
@@ -26,18 +26,6 @@ namespace TON
|
||||
private int accumulatedWeight; // 가중치 계산을 위한 변수
|
||||
private bool isSpinning = false; // 현재 회전중인지
|
||||
private int selectedIndex = 0; // 룰렛에서 선택된 아이템
|
||||
|
||||
private RoulettePresenter _presenter;
|
||||
|
||||
public void Bind(RouletteItemPresenter presenter)
|
||||
{
|
||||
// presenter.Gold.Subscribe()
|
||||
}
|
||||
|
||||
public class RouletteItemPresenter
|
||||
{
|
||||
public ReactiveProperty<int> Gold { get; set; }
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -45,8 +33,6 @@ namespace TON
|
||||
halfPieceAngle = pieceAngle * 0.5f;
|
||||
halfPieceAngleWithPaddings = halfPieceAngle - (halfPieceAngle * 0.25f);
|
||||
|
||||
_presenter = new RoulettePresenter();
|
||||
|
||||
SpawnPiecesAndLines();
|
||||
CalculateWeightsAndIndices();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user