替换素材,增加打孔带溢出表现

This commit is contained in:
2024-12-30 11:31:02 +08:00
parent 588571f9dc
commit cf0db07839
15 changed files with 5001 additions and 10 deletions
@@ -4,6 +4,7 @@ using DG.Tweening;
using UnityEngine;
using AibisDream.FixSystem;
using UnityEngine.UI;
using Unity.VisualScripting;
public class PunchTapeSystem : MonoBehaviour
{
@@ -15,6 +16,7 @@ public class PunchTapeSystem : MonoBehaviour
public float stepDistance = 0.5f; // Distance moved per step
public float[] stepPatterns = { 0.3f, 0.5f, 0.2f, 0.4f, 0.6f }; // Pattern of intervals to simulate rhythmic printing
public GameObject tempPunchTapeGroup;
private void Awake()
{
FixSystemCenter.SystemDic.Register(this);
@@ -74,6 +76,19 @@ public class PunchTapeSystem : MonoBehaviour
yield return punchTapeMachine.DOAnchorPos(new Vector2(-1428.186f, punchTapeMachine.anchoredPosition.y), 1f).WaitForCompletion();
blackPanel.SetActive(false);
}
public void Temp_showPunchTapeGroup()
{
tempPunchTapeGroup.SetActive(true);
}
public IEnumerator Temp_HidePunchTapeGroup()
{
foreach(SpriteRenderer s in tempPunchTapeGroup.GetComponentsInChildren<SpriteRenderer>())
{
s.DOFade(0,0.5f);
}
yield return new WaitForSeconds(0.5f);
tempPunchTapeGroup.SetActive(false);
}
}