ButtonMgr.cs 714 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ButtonMgr : MonoBehaviour
  5. {
  6. private void Start()
  7. {
  8. }
  9. private void Update()
  10. {
  11. if ((UICamera.selectedObject == null || (UICamera.selectedObject.tag != "ButtonCate" && UICamera.selectedObject.tag != "ButtonPartsType" && UICamera.selectedObject.tag != "ButtonMenuItem")) && UIKeyNavigation2.listCate != null && UIKeyNavigation2.listCate.size > 0)
  12. {
  13. UICamera.selectedObject = UIKeyNavigation2.listCate[0].gameObject;
  14. }
  15. }
  16. public List<GameObject> m_goCategory = new List<GameObject>();
  17. public List<GameObject> m_goPartsType = new List<GameObject>();
  18. public List<GameObject> m_goMenuItem = new List<GameObject>();
  19. }