浏览代码

Update coaching goal usage to new API

/3.1
Tim Mowrer 5 年前
当前提交
dd789ce0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      Assets/Scenes/ARKitCoachingOverlay/ARKitCoachingOverlay.cs

6
Assets/Scenes/ARKitCoachingOverlay/ARKitCoachingOverlay.cs


{
if (GetComponent<ARSession>().subsystem is ARKitSessionSubsystem sessionSubsystem)
{
return sessionSubsystem.coachingGoal;
return sessionSubsystem.requestedCoachingGoal;
}
else
{

m_Goal = (CoachingGoal)value;
if (supported && GetComponent<ARSession>().subsystem is ARKitSessionSubsystem sessionSubsystem)
{
sessionSubsystem.coachingGoal = value;
sessionSubsystem.requestedCoachingGoal = value;
}
}
}

#if UNITY_IOS
if (supported && GetComponent<ARSession>().subsystem is ARKitSessionSubsystem sessionSubsystem)
{
sessionSubsystem.coachingGoal = (ARCoachingGoal)m_Goal;
sessionSubsystem.requestedCoachingGoal = (ARCoachingGoal)m_Goal;
sessionSubsystem.coachingActivatesAutomatically = m_ActivatesAutomatically;
}
else

正在加载...
取消
保存