胡佳骏 1 سال پیش
والد
کامیت
b5fc8e2a86
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Samples~/SDK/XRRGBCamera.cs

+ 2 - 1
Samples~/SDK/XRRGBCamera.cs

@@ -3,8 +3,9 @@ using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
+using SC.XR.Unity;
 
-public class XRRGBCamera : MonoBehaviour
+public class XRRGBCamera : SingletonMono<XRRGBCamera>
 {
     public static XRRGBCamera Instance;
     public Texture CaptureImage;