52 lines
1.2 KiB
C#
52 lines
1.2 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 EnableDrag()
|
|
{
|
|
BlockPuzzleYarnCommand.EnableDrag();
|
|
}
|
|
|
|
public void LoadShapeRack()
|
|
{
|
|
BlockPuzzleYarnCommand.LoadShapeRack();
|
|
}
|
|
|
|
public void Open()
|
|
{
|
|
BlockPuzzleYarnCommand.PlayShapeAnimation("Open");
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
BlockPuzzleYarnCommand.PlayShapeAnimation("Close");
|
|
}
|
|
}
|
|
} |