HomeView_BottomBarView.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using JCUnityLib;
  5. public class HomeView_BottomBarView : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. }
  11. // Update is called once per frame
  12. //void Update()
  13. //{
  14. //}
  15. public void GoToConnect() {
  16. Debug.Log("进入连接页面");
  17. AudioMgr.ins.PlayBtn();
  18. ViewMgr.Instance.ShowView<DeviceViewInfrared>();
  19. }
  20. public void GoToSetup()
  21. {
  22. AudioMgr.ins.PlayBtn();
  23. GameObject settingsViewObj = ViewManager2.getGameObjectAndShowView(ViewManager2.Path_SettingsView);
  24. settingsViewObj.GetComponent<SmartBow.SettingsView>().ShowBoxSound(true);
  25. }
  26. public void GoToShop()
  27. {
  28. AudioMgr.ins.PlayBtn();
  29. if (ShopView.ins) return;
  30. ViewMgr.Instance.ShowView<ShopView>();
  31. }
  32. public void GoToGuider()
  33. {
  34. AudioMgr.ins.PlayBtn();
  35. //跳转至 设置-教程视频
  36. GameObject settingsViewObj = ViewManager2.getGameObjectAndShowView(ViewManager2.Path_SettingsView);
  37. settingsViewObj.GetComponent<SmartBow.SettingsView>().OnClick_BtnNewUser();
  38. //NewUserGuiderManager.ins.ReviewNewUserGuide();
  39. }
  40. public void GoToNewUser()
  41. {
  42. AudioMgr.ins.PlayBtn();
  43. //ViewManager2.ShowView(ViewManager2.Path_ConnectGuidanceView);
  44. }
  45. public void GoToFriends() {
  46. Debug.Log("进入好友页面");
  47. AudioMgr.ins.PlayBtn();
  48. ViewManager2.ShowView(ViewManager2.Path_SocialView);
  49. }
  50. public void GoToRanking()
  51. {
  52. Debug.Log("进入排名页面");
  53. AudioMgr.ins.PlayBtn();
  54. ViewManager2.ShowView(ViewManager2.Path_RankingView);
  55. }
  56. }