SetUpView.cs 652 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class SetUpView : MonoBehaviour
  5. {
  6. public void Quit()
  7. {
  8. AudioMgr.ins.PlayBtn();
  9. Application.Quit();
  10. }
  11. public void CheckBox(GameObject checkBox) {
  12. checkBox.SetActive(!checkBox.activeSelf);
  13. if (checkBox.name.StartsWith("Effect")) {
  14. AudioMgr.openEffect = checkBox.activeSelf;
  15. }
  16. else if (checkBox.name.StartsWith("BGM")) {
  17. }
  18. AudioMgr.ins.PlayBtn();
  19. }
  20. public void Back() {
  21. AudioMgr.ins.PlayBtn();
  22. Destroy(this.gameObject);
  23. }
  24. }