123456789101112131415161718192021222324252627282930 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Vuforia;
- public class SyncPosForGround : DefaultTrackableEventHandler
- {
- public Transform ChildPos = null;
- public bool isScan = false;
- protected override void OnTrackingFound()
- {
- if(!isScan)
- {
- MessageCenterController.Instance.Broadcast(GameEnum.MESSAGE_VUFORIA_SYNC_POS, ChildPos);
- isScan = true;
- base.OnTrackingFound();
- }
- }
- public void SetOpenScan()
- {
- isScan = false;
- }
- protected override void OnTrackingLost()
- {
-
- }
- }
|