-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f2f58f
commit aa7325b
Showing
6 changed files
with
167 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using TMPro; | ||
|
||
public class ShopManager : MonoBehaviour | ||
{ | ||
public static ShopManager instance; | ||
|
||
[Header("UI")] | ||
public GameObject itemBox; | ||
|
||
public GameObject shopUI; | ||
|
||
public RectTransform itemBoxParent; | ||
|
||
[Header("Selected Item UI")] | ||
public Image selectItemSprite; | ||
|
||
public TextMeshProUGUI selectItemName; | ||
public TextMeshProUGUI selectItemDescription; | ||
public Button btnBuy; | ||
|
||
public bool isOpen = false; | ||
|
||
public void Awake() | ||
{ | ||
if (instance == null) | ||
{ | ||
instance = this; | ||
} | ||
else | ||
{ | ||
Destroy(gameObject); | ||
} | ||
|
||
DontDestroyOnLoad(gameObject); | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.