item generation first iteration
This commit is contained in:
parent
70a7a4774a
commit
785284b42e
@ -79,6 +79,24 @@ public class EquippableItemGenerator : MonoBehaviour
|
|||||||
Legendary
|
Legendary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Singleton
|
||||||
|
private static EquippableItemGenerator _instance;
|
||||||
|
|
||||||
|
// Public reference to the singleton instance
|
||||||
|
public static EquippableItemGenerator Instance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
// If the instance doesn't exist, try to find it in the scene
|
||||||
|
if (_instance == null)
|
||||||
|
{
|
||||||
|
_instance = FindObjectOfType<EquippableItemGenerator>();
|
||||||
|
}
|
||||||
|
return _instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
UpdateListsFromResources();
|
UpdateListsFromResources();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user