资源清理

This commit is contained in:
2025-03-21 17:41:58 +08:00
parent a6d5c91907
commit d820084a2e
13 changed files with 3789 additions and 37982 deletions
@@ -1,3 +1,4 @@
using System;
using System.Collections;
using DG.Tweening;
using UnityEngine;
@@ -16,13 +17,16 @@ public class PunchTapeSystem : MonoBehaviour
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);
}
private void OnDestroy()
{
FixSystemCenter.SystemDic.Unregister<PunchTapeSystem>();
}
public IEnumerator PrintPunchTapes(int tapeCount)
{
blackPanel.SetActive(true);
@@ -66,20 +70,4 @@ public class PunchTapeSystem : MonoBehaviour
.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);
}
}