SyncPosForGround.cs 656 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. //using Vuforia;
  5. public class SyncPosForGround : MonoBehaviour//DefaultTrackableEventHandler
  6. {
  7. public Transform ChildPos = null;
  8. public bool isScan = false;
  9. /*
  10. protected override void OnTrackingFound()
  11. {
  12. if(!isScan)
  13. {
  14. MessageCenterController.Instance.Broadcast(GameEnum.MESSAGE_VUFORIA_SYNC_POS, ChildPos);
  15. isScan = true;
  16. base.OnTrackingFound();
  17. }
  18. }
  19. public void SetOpenScan()
  20. {
  21. isScan = false;
  22. }
  23. protected override void OnTrackingLost()
  24. {
  25. }*/
  26. }