12.10 进度 基本完成

This commit is contained in:
SoulliesOfficial
2025-12-10 18:22:26 -05:00
parent 8d6267e1a2
commit f7cab3e784
224 changed files with 11116 additions and 6240 deletions

View File

@@ -1,3 +1,4 @@
using Lean.Pool;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -10,8 +11,24 @@ namespace Continentis.MainGame.UI
public Image titleBackground, contentBackground;
public TMP_Text titleText, contentText;
public static InformationBox Create(RectTransform parent, ref InformationBox exclusivity)
{
GameObject infoBoxPrefab = MainGameManager.Instance.basePrefabs.informationBox;
exclusivity ??= LeanPool.Spawn(infoBoxPrefab, parent).GetComponent<InformationBox>();
return exclusivity;
}
public static void Despawn(ref InformationBox infoBox)
{
if (infoBox != null)
{
LeanPool.Despawn(infoBox.gameObject);
infoBox = null;
}
}
/// <summary>
/// 卡牌的关键词和描述
/// 处于LayoutGroup中时的初始化
/// </summary>
public void Initialize(string title, string content)
{
@@ -21,7 +38,7 @@ namespace Continentis.MainGame.UI
}
/// <summary>
/// Buff的名称和描述
/// 非LayoutGroup中时的初始化
/// </summary>
public void Initialize(string title, string content, Vector2 basePosition)
{