Files
aibis-dream/Assets/Scripts/MiniGame/BlockPuzzle/Test/BlockPuzzleTest.cs
T
2026-02-26 19:01:28 +08:00

45 lines
1.0 KiB
C#

using AibisDream.Kit;
using UnityEngine;
namespace AibisDream.Test
{
public class BlockPuzzleTest : MonoBehaviour
{
void Start()
{
Debug.LogWarning("BlockPuzzleTest 运行中");
}
public void InitBlockPuzzle()
{
BlockPuzzleYarnCommand.InitBlockPuzzle("Game2");
}
public void UnlockBlockPuzzle()
{
ActionKit.Sequence()
.Coroutine(() => {
return TimelineCenter.Instance.PlayTimelineAsync("卡扣/卡扣解锁");
})
.Callback(() => {
BlockPuzzleYarnCommand.UnlockSystem();
})
.Start(this);
}
public void LoadShapeRack()
{
BlockPuzzleYarnCommand.LoadShapeRack();
}
public void Open()
{
BlockPuzzleYarnCommand.PlayShapeAnimation("Open");
}
public void Close()
{
BlockPuzzleYarnCommand.PlayShapeAnimation("Close");
}
}
}