浏览代码

fixed warnings related to fields never assigned

/main
Dan Miller 5 年前
当前提交
7d70c351
共有 5 个文件被更改,包括 176 次插入37 次删除
  1. 12
      Assets/ImageTracking/Scripts/DistanceManager.cs
  2. 36
      Assets/ImageTracking/Scripts/ImageTrackingObjectManager.cs
  3. 6
      Assets/ImageTracking/Scripts/NumberManager.cs
  4. 70
      Assets/UX/Scripts/ARUXAnimationManager.cs
  5. 89
      Assets/UX/Scripts/UIManager.cs

12
Assets/ImageTracking/Scripts/DistanceManager.cs


/// <summary>
/// Get the <c>ImageTrackingObjectManger</c>
/// </summary>
public ImageTrackingObjectManager imageTrackingObjectManager => m_ImageTrackingObjectManager;
public ImageTrackingObjectManager imageTrackingObjectManager
{
get => m_ImageTrackingObjectManager;
set => m_ImageTrackingObjectManager = value;
}
[SerializeField]
[Tooltip("Prefab to be spawned and showed between numbers based on distance")]

/// Get the sum prefab
/// </summary>
public GameObject sumPrefab => m_SumPrefab;
public GameObject sumPrefab
{
get => m_SumPrefab;
set => m_SumPrefab = value;
}
GameObject m_SpawnedSumPrefab;
GameObject m_OneObject;

36
Assets/ImageTracking/Scripts/ImageTrackingObjectManager.cs


/// <summary>
/// Get the <c>ARTrackedImageManager</c>
/// </summary>
public ARTrackedImageManager ImageManager => m_ImageManager;
public ARTrackedImageManager ImageManager
{
get => m_ImageManager;
set => m_ImageManager = value;
}
[SerializeField]
[Tooltip("Reference Image Library")]

/// Get the <c>XRReferenceImageLibrary</c>
/// </summary>
public XRReferenceImageLibrary ImageLibrary => m_ImageLibrary;
public XRReferenceImageLibrary ImageLibrary
{
get => m_ImageLibrary;
set => m_ImageLibrary = value;
}
[SerializeField]
[Tooltip("Prefab for tracked 1 image")]

/// Get the one prefab
/// </summary>
public GameObject onePrefab => m_OnePrefab;
public GameObject onePrefab
{
get => m_OnePrefab;
set => m_OnePrefab = value;
}
GameObject m_SpawnedOnePrefab;

public GameObject spawnedOnePrefab => m_SpawnedOnePrefab;
public GameObject spawnedOnePrefab
{
get => m_SpawnedOnePrefab;
set => m_SpawnedOnePrefab = value;
}
[SerializeField]
[Tooltip("Prefab for tracked 2 image")]

/// get the two prefab
/// </summary>
public GameObject twoPrefab => m_TwoPrefab;
public GameObject twoPrefab
{
get => m_TwoPrefab;
set => m_TwoPrefab = value;
}
GameObject m_SpawnedTwoPrefab;

public GameObject spawnedTwoPrefab => m_SpawnedTwoPrefab;
public GameObject spawnedTwoPrefab
{
get => m_SpawnedTwoPrefab;
set => m_SpawnedTwoPrefab = value;
}
int m_NumberOfTrackedImages;

6
Assets/ImageTracking/Scripts/NumberManager.cs


[Tooltip("Number Object in the prefab")]
GameObject m_NumberObject;
public GameObject numberObject
{
get => m_NumberObject;
set => m_NumberObject = value;
}
AimConstraint m_Constraint;
void OnEnable()

70
Assets/UX/Scripts/ARUXAnimationManager.cs


/// <summary>
/// Get the <c>Instructional Text</c>
/// </summary>
public TMP_Text instructionText => m_InstructionText;
public TMP_Text instructionText
{
get => m_InstructionText;
set => m_InstructionText = value;
}
[SerializeField]
[Tooltip("Move device animation")]
VideoClip m_FindAPlaneClip;

/// </summary>
public VideoClip findAPlaneClip => m_FindAPlaneClip;
public VideoClip findAPlaneClip
{
get => m_FindAPlaneClip;
set => m_FindAPlaneClip = value;
}
[SerializeField]
[Tooltip("Tap to place animation")]

/// Get the <c>Tap to place Clip</c>
/// </summary>
public VideoClip tapToPlaceClip => m_TapToPlaceClip;
public VideoClip tapToPlaceClip
{
get => m_TapToPlaceClip;
set => m_TapToPlaceClip = value;
}
[SerializeField]
[Tooltip("Find Clip animation")]

/// Get the <c>Find Image Clip</c>
/// </summary>
public VideoClip findImageClip => m_FindImageClip;
public VideoClip findImageClip
{
get => m_FindImageClip;
set => m_FindImageClip = value;
}
[SerializeField]
[Tooltip("Find body animation")]

/// Get the <c>Find body Clip</c>
/// </summary>
public VideoClip findBodyClip => m_FindBodyClip;
public VideoClip findBodyClip
{
get => m_FindBodyClip;
set => m_FindBodyClip = value;
}
[SerializeField]
[Tooltip("Find object animation")]

/// Get the <c>Find object Clip</c>
/// </summary>
public VideoClip findObjectClip => m_FindObjectClip;
public VideoClip findObjectClip
{
get => m_FindObjectClip;
set => m_FindObjectClip = value;
}
[SerializeField]
[Tooltip("Find face animation")]

/// Get the <c>Find face iamge</c>
/// </summary>
public VideoClip findFaceClip => m_FindFaceClip;
public VideoClip findFaceClip
{
get => m_FindFaceClip;
set => m_FindFaceClip = value;
}
[SerializeField]
[Tooltip("ARKit Coaching overlay reference")]

/// Get the <c>ARKit coaching overlay</c>
/// </summary>
public ARKitCoachingOverlay coachingOverlay => m_CoachingOverlay;
public ARKitCoachingOverlay coachingOverlay
{
get => m_CoachingOverlay;
set => m_CoachingOverlay = value;
}
public VideoPlayer videoPlayer => m_VideoPlayer;
public VideoPlayer videoPlayer
{
get => m_VideoPlayer;
set => m_VideoPlayer = value;
}
public RawImage rawImage => m_RawImage;
public RawImage rawImage
{
get => m_RawImage;
set => m_RawImage = value;
}
[SerializeField]
[Tooltip("time the UI takes to fade on")]
float m_FadeOnDuration = 1.0f;

[SerializeField]
Texture m_Transparent;
public Texture transparent
{
get => m_Transparent;
set => m_Transparent = value;
}
RenderTexture m_RenderTexture;

89
Assets/UX/Scripts/UIManager.cs


[SerializeField]
bool m_StartWithInstructionalUI = true;
public bool startWithInstructionalUI => m_StartWithInstructionalUI;
public bool startWithInstructionalUI
{
get => m_StartWithInstructionalUI;
set => m_StartWithInstructionalUI = value;
}
public enum InstructionUI
{

[SerializeField]
InstructionUI m_InstructionalUI;
public InstructionUI instructionalUI => m_InstructionalUI;
public InstructionUI instructionalUI
{
get => m_InstructionalUI;
set => m_InstructionalUI = value;
}
public enum InstructionGoals
{

[SerializeField]
InstructionGoals m_InstructionalGoal;
public InstructionGoals instructionalGoal => m_InstructionalGoal;
public InstructionGoals instructionalGoal
{
get => m_InstructionalGoal;
set => m_InstructionalGoal = value;
}
public bool showSecondaryInstructionalUI => m_ShowSecondaryInstructionalUI;
public bool showSecondaryInstructionalUI
{
get => m_ShowSecondaryInstructionalUI;
set => m_ShowSecondaryInstructionalUI = value;
}
public InstructionUI secondaryInstructionUI => m_SecondaryInstructionUI;
public InstructionUI secondaryInstructionUI
{
get => m_SecondaryInstructionUI;
set => m_SecondaryInstructionUI = value;
}
public InstructionGoals secondaryGoal => m_SecondaryGoal;
public InstructionGoals secondaryGoal
{
get => m_SecondaryGoal;
set => m_SecondaryGoal = value;
}
public bool coachingOverlayFallback => m_CoachingOverlayFallback;
public bool coachingOverlayFallback
{
get => m_CoachingOverlayFallback;
set => m_CoachingOverlayFallback = value;
}
public GameObject arSessionOrigin => m_ARSessionOrigin;
public GameObject arSessionOrigin
{
get => m_ARSessionOrigin;
set => m_ARSessionOrigin = value;
}
Queue<UXHandle> m_UXOrderedQueue;
UXHandle m_CurrentHandle;
bool m_ProcessingInstructions;

ARPlaneManager m_PlaneManager;
public ARPlaneManager planeManager => m_PlaneManager;
public ARPlaneManager planeManager
{
get => m_PlaneManager;
set => m_PlaneManager = value;
}
public ARFaceManager faceManager => m_FaceManager;
public ARFaceManager faceManager
{
get => m_FaceManager;
set => m_FaceManager = value;
}
public ARHumanBodyManager bodyManager => m_BodyManager;
public ARHumanBodyManager bodyManager
{
get => m_BodyManager;
set => m_BodyManager = value;
}
public ARTrackedImageManager imageManager => m_ImageManager;
public ARTrackedImageManager imageManager
{
get => m_ImageManager;
set => m_ImageManager = value;
}
public ARTrackedObjectManager objectManager => m_ObjectManager;
public ARTrackedObjectManager objectManager
{
get => m_ObjectManager;
set => m_ObjectManager = value;
}
public ARUXAnimationManager animationManager => m_AnimationManager;
public ARUXAnimationManager animationManager
{
get => m_AnimationManager;
set => m_AnimationManager = value;
}
void OnEnable()
{
ARUXAnimationManager.onFadeOffComplete += FadeComplete;

正在加载...
取消
保存