Firstborn/Assets/RPG Creation Kit/Scripts/Databases/Icons Database/IconsDatabase.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

28 lines
612 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
namespace RPGCreationKit
{
public class IconsDatabase : MonoBehaviour
{
public static IconsDatabase instance;
private void Awake()
{
instance = this;
sFile = file;
}
public IconsDatabaseFile file;
public static IconsDatabaseFile sFile;
public static Sprite GetItem(string _itemID)
{
Sprite item;
sFile.dictionary.TryGetValue(_itemID, out item);
return item;
}
}
}