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"); } } }