void Awake() { this.enabled = false; this.recorder = GetComponent<ScanImageRecording>(); }
void Awake() { // get kinect specific behaviours this.capturer = GetComponent<ScanImageCapturing>(); this.tracker = GetComponent<BodyTracking>(); this.recorder = GetComponent<ScanImageRecording>(); this.exporter = GetComponent<SkeletonOneExporting>(); this.settings = GetComponent<KinectOneSettings>(); // model renderer this.kinectRenderer = GetComponentInChildren<MeshRenderer>(); // gui minimap video renderer this.colorMinimap = FindObjectOfType<MinimapColorRendering>(); this.skin = Resources.Load<GUISkin>(GuiSkinLocation); DontDestroyOnLoad(this.gameObject); }