[Add] GameLoop base
This commit is contained in:
@@ -54,6 +54,20 @@ namespace YachtDice.Shop
|
||||
shopView.Show();
|
||||
}
|
||||
|
||||
public void Open()
|
||||
{
|
||||
if (shopView == null) return;
|
||||
shopView.Show();
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if (shopView == null) return;
|
||||
shopView.Hide();
|
||||
}
|
||||
|
||||
public bool IsOpen => shopView != null && shopView.IsVisible;
|
||||
|
||||
private void HandleBuyClicked(IShopItem item)
|
||||
{
|
||||
_model.TryPurchase(item);
|
||||
|
||||
Reference in New Issue
Block a user