コード例 #1
0
    // 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;
        }
    }
コード例 #2
0
 // Private Functions ////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Initializes the static instance of this class
 /// </summary>
 void Awake()
 {
     if (inst == null)
         inst = this;
 }