// Use this for initialization void Start() { if (bodySrcManager == null) { print("xxx"); } else { bodyManager = bodySrcManager.GetComponent <BodySourceManager>(); this.kinectSensor = KinectSensor.GetDefault(); coordinateMapper = this.kinectSensor.CoordinateMapper; FEMCalibrator = mappingSystem.GetComponent <FEMCalibrator>(); } }
// Use this for initialization void Start() { if (BodySrcManager == null) { Debug.Log("Assign Game Object with Body Source Manager"); } else { Debug.Log("Started!"); bodyManager = BodySrcManager.GetComponent <BodySourceManager>(); this.kinectSensor = KinectSensor.GetDefault(); coordinateMapper = this.kinectSensor.CoordinateMapper; FEMCalibrator = mappingSystem.GetComponent <FEMCalibrator>(); if (bodyManager == null) { Debug.Log("bodyManager is null when start"); return; } } }