我说次元斩
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using Lean.Pool;
|
||||
using SLSUtilities.General;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cielonos.MainGame.UI
|
||||
{
|
||||
public class PolychromeExtraUIContainer : MainWeaponExtraUIContainer
|
||||
{
|
||||
public GameObject techniqueStarPrefab;
|
||||
public HorizontalLayoutGroup layoutGroup;
|
||||
|
||||
public void SetStars(int starCount)
|
||||
{
|
||||
int currentStars = layoutGroup.transform.childCount;
|
||||
if (starCount != currentStars)
|
||||
{
|
||||
layoutGroup.transform.DespawnAllChildren();
|
||||
|
||||
for (int i = 0; i < starCount; i++)
|
||||
{
|
||||
GameObject star = LeanPool.Spawn(techniqueStarPrefab, layoutGroup.transform);
|
||||
star.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user