// Use this for initialization void Start() { // assign local variable to static instance reference breath = KinectDataSensors.inst; // if the bool is false when the scene starts, disable the canvas if(!panelOpen) { canvas.enabled = false; } }
// Private Functions //////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Initializes the static instance of this class /// </summary> void Awake() { if (inst == null) inst = this; }