#region PRIVATE_METHODS
protected virtual void OnTrackingFound()
{
isShow = true;
cubeTrans.SetParent(transform);
cubeTrans.position = Vector3.zero;
}
protected virtual void OnTrackingLost()
{
if (isShow) {
cubeTrans.SetParent(targetTrans);
cubeTrans.position = Vector3.zero;
isShow = false;
}
}
#endregion // PRIVATE_METHODS
效果更好