示例#1
0
    public void OnTrackableStateChanged(
        TrackableBehaviour.Status previousStatus,
        TrackableBehaviour.Status newStatus)
    {
        // Debug.Log(previousStatus.ToString() + " -> " + newStatus.ToString() + " ----------------");
        bool prevVisible = Util.IsTrackableStatusVisible(previousStatus);
        bool newVisible  = Util.IsTrackableStatusVisible(newStatus);

        if (newVisible)
        {
            // 현재 상태가 보임 가능
            mainSystem.OnTrackableStateChanged(true);
        }
        else
        {
            mainSystem.OnTrackableStateChanged(false);
        }
    }