ย  ย  public IEnumerator SkipSequanceCoroutine(IEnumerator _seq, int index) {

ย  ย  ย  ย  yield return new WaitForSecondsRealtime(0.3f);

ย  ย  ย  ย  // yield return new WaitUntil(() => Input.GetKey(KeyCode.Z));ย 

ย  ย  ย  ย  //Debug.Log($"SkipeSequence Key Check : { sequenceAction.SequenceUI.Interaction.triggered}");

ย  ย  ย  ย  yield return new WaitUntil(() => sequenceAction.SequenceUI.Interaction.triggered);ย  ย  ย <-------------์—ฌ๊ธฐ

ย  ย  ย  ย  // yield return new WaitUntil(() => );

ย  ย  ย  ย  StopCoroutine(_seq);

ย  ย  ย  ย  textContext.text = t_context;

ย  ย  ย  ย  IEnumerator nextDialog = nextContext(index);

ย  ย  ย  ย  StartCoroutine(nextDialog);

ย  ย  }


๊ธฐ์กด์— ์•„๋ž˜์™€ ๊ฐ™์ด ์ž‘์„ฑํ•ด์„œ ์‚ฌ์šฉ ํ–ˆ๋Š”๋ฐ


sequenceAction = new InputSystem() ์„ ์–ธํ•ด๋†“๊ณ 

yield return new WaitUntil(() => sequenceAction.SequenceUI.Interaction.triggered);


์ด๋ฒˆ์— ๊ฐˆ์•„์—Ž์œผ๋ฉด์„œ


Controller sequenceAction;ย  ย  (Controller๋Š” InputSystem์„ ์ธํ„ฐํŽ˜์ด์Šค๋กœ ์ž‘์„ฑํ•œ ๊ฒƒ)ย  ์„ ์–ธํ•ด๋†“๊ณ 

sequenceAction.SequenceEvent += HandleSequence;


public void HandleSequence() ์ด๋ฒคํŠธ ํ•ธ๋“ค๋Ÿฌ๋ฅผ ํ•˜๋‚˜๋‘ฌ์„œ

yield return enw WaitUntill() ์—๋‹ค๊ฐ€ ๋™์ผํ•œ triggered๋ฅผ ๋„ฃ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค..


SequnceEvent์— ๋Œ€์‘ํ•˜๋Š” OnInteraction(InputAction.CallbackContext context) ํ•จ์ˆ˜๋Š”

ย  ย  public void OnInteraction(InputAction.CallbackContext context)

ย  ย  {

ย  ย  ย  ย  if (context.phase == InputActionPhase.Started) {

ย  ย  ย  ย  ย  ย  InteractStartEvent?.Invoke();

ย  ย  ย  ย  }

ย  ย  ย  ย  if (context.phase == InputActionPhase.Performed)

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  InteractEvent?.Invoke(true);

ย  ย  ย  ย  }

ย  ย  ย  ย  if (context.phase == InputActionPhase.Canceled)

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  InteractEvent?.Invoke(false);

ย  ย  ย  ย  }

ย  ย  }


์œ„์— ์ฒ˜๋Ÿผ ๊ตฌ์„ฑ ํ•ด๋†“์•˜๋Š”๋ฐ..

๋จธ๋ฆฌ๋ฅผ ์‹ธ๋งค๊ณ  ๊ณ ๋ฏผํ•ด๋ด๋„ ์ € Triggered๋ฅผ WaitUntill์—๋‹ค๊ฐ€ ๋„ฃ์„ ๋ฐฉ๋ฒ•์ด ์ƒ๊ฐ์ด ์•ˆ๋‚˜๋„ค์š”..

์œ„์— ๋ฐฉ๋ฒ•์„ ํ•˜๋ฉด ํ”Œ๋ ˆ์ด์–ด - ์‹œํ€€์Šค๊ฐ„ ON/OFF๊ฐ€ ์ œ๋Œ€๋กœ ์•ˆ๋˜์„œ ๋‹ต๋‹ตํ•ฉ๋‹ˆ๋‹ค..



ย