|
|
|
|
|
|
{ |
|
|
|
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 |
|
|
|