| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | [CreateAssetMenu(menuName = "Config/FunctionButtonConfig")] |
| | | public class FunctionButtonConfig : ScriptableObject |
| | |
| | | public UIConfig locked = new UIConfig("Title_Locked", Color.white, 23); |
| | | |
| | | static FunctionButtonConfig m_Default; |
| | | public static FunctionButtonConfig GetDefault() |
| | | public static async UniTask<FunctionButtonConfig> GetDefault() |
| | | { |
| | | if (m_Default == null) |
| | | { |
| | | m_Default = BuiltInLoader.LoadScriptableObject<FunctionButtonConfig>("FunctionButton_Default"); |
| | | m_Default = await BuiltInLoader.LoadScriptableObjectAsync<FunctionButtonConfig>("FunctionButton_Default"); |
| | | } |
| | | |
| | | return m_Default; |
| | | } |
| | | |