ChallengeGameView.cs 657 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using UnityEngine.SceneManagement;
  6. public class ChallengeGameView : MonoBehaviour
  7. {
  8. public Text arrows;
  9. public static ChallengeGameView ins;
  10. void Start()
  11. {
  12. ins = this;
  13. }
  14. void OnDestroy()
  15. {
  16. ins = null;
  17. }
  18. public void Shoot()
  19. {
  20. ArmBow.ins.ADS_fire();
  21. }
  22. public void SetBasePoint()
  23. {
  24. }
  25. public void back()
  26. {
  27. AudioMgr.ins.PlayBtn();
  28. SceneManager.LoadScene("Home", LoadSceneMode.Single);
  29. // Application.Quit();
  30. }
  31. }