public void OptionOff() { if (isPause) { isPause = false; Time.timeScale = 1; // 일시정지 해제 PlaySoundA(23); SP_bar.localScale = new Vector3(1, 1, 1); OptionScreen.SetActive(false); FakeBoard.SetActive(false); } }
// 옵션 버튼 기능 public void OptionOn() { if (!isPause) { isPause = true; PlaySoundA(24); SP_bar.localScale = new Vector3(1, 0, 1); OptionScreen.SetActive(true); FakeBoard.SetActive(true); Time.timeScale = 0; // 일시정지 } }