流程merge完成
This commit is contained in:
@@ -9,6 +9,8 @@ public class PunchTapeSystem : MonoBehaviour
|
||||
{
|
||||
public RectTransform punchTapeMachine;
|
||||
public RectTransform punchTape;
|
||||
|
||||
public GameObject blackPanel;
|
||||
public float stepInterval = 0.1f; // Interval between each printing step
|
||||
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
|
||||
@@ -18,13 +20,13 @@ public class PunchTapeSystem : MonoBehaviour
|
||||
FixSystemCenter.SystemDic.Register(this);
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.P))
|
||||
{
|
||||
StartPrinting(2);
|
||||
}
|
||||
}
|
||||
// public void Update()
|
||||
// {
|
||||
// if (Input.GetKeyDown(KeyCode.P))
|
||||
// {
|
||||
// StartPrinting(2);
|
||||
// }
|
||||
// }
|
||||
|
||||
public void StartPrinting(int tapeCount)
|
||||
{
|
||||
@@ -33,6 +35,7 @@ public class PunchTapeSystem : MonoBehaviour
|
||||
|
||||
public IEnumerator PrintPunchTapes(int tapeCount)
|
||||
{
|
||||
blackPanel.SetActive(true);
|
||||
Vector3 machineStartPos = punchTapeMachine.anchoredPosition;
|
||||
Vector3 tapeStartPos = punchTape.anchoredPosition;
|
||||
Color tapeStartColor = punchTape.GetComponent<Image>().color;
|
||||
@@ -69,6 +72,7 @@ public class PunchTapeSystem : MonoBehaviour
|
||||
|
||||
// Move the printer back to x = 0 over 1 second
|
||||
yield return punchTapeMachine.DOAnchorPos(new Vector2(-1428.186f, punchTapeMachine.anchoredPosition.y), 1f).WaitForCompletion();
|
||||
blackPanel.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user