OldBlueWater/BlueWater/Assets/Doozy/Runtime/UIManager/ScriptableObjects/UIPopupDatabase.cs
2023-08-02 15:08:03 +09:00

27 lines
1000 B
C#

// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System;
using Doozy.Runtime.Common.Attributes;
using Doozy.Runtime.UIManager.Containers;
using Doozy.Runtime.UIManager.ScriptableObjects.Internal;
namespace Doozy.Runtime.UIManager.ScriptableObjects
{
[Serializable]
public class UIPopupDatabase : PrefabLinkDatabase<UIPopupDatabase, UIPopupLink>
{
public override string defaultLinkName => UIPopup.k_DefaultPopupName;
public override string databaseName => nameof(UIPopup);
[RestoreData(nameof(UIPopupDatabase))]
public static UIPopupDatabase RestoreData() =>
instance;
[RefreshData(nameof(UIPopupDatabase))]
public static void RefreshData() =>
instance.RefreshDatabase();
}
}