/* Setter & Getter */ /* Functions */ private void Awake() { instance = CheckSingleton(instance, this); JCS_IO.CreateDirectory(JCS_GameData.SavePath()); JCS_IO.CreateDirectory(JCS_Camera.SavePath()); JCS_IO.CreateDirectory(JCS_Webcam.SavePath()); JCS_IO.CreateDirectory(JCS_StreamingAssets.CachePath()); }
protected override void Awake() { base.Awake(); // try to get the webcam from the scene. if (mWebcam == null) { mWebcam = (JCS_Webcam)FindObjectOfType(typeof(JCS_Webcam)); } }
/* Setter & Getter */ /* Functions */ private void Awake() { instance = CheckSingleton(instance, this); REAL_DATA_PATH = JCS_AppData.SavePath(); REAL_SCREENSHOT_PATH = JCS_Camera.SavePath(); REAL_WEBCAM_PATH = JCS_Webcam.SavePath(); REAL_STREAMING_CACHE_PATH = JCS_StreamingAssets.CachePath(); JCS_IO.CreateDirectory(REAL_DATA_PATH); JCS_IO.CreateDirectory(REAL_SCREENSHOT_PATH); JCS_IO.CreateDirectory(REAL_WEBCAM_PATH); JCS_IO.CreateDirectory(REAL_STREAMING_CACHE_PATH); }