Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        if (k == null)
        {
            k = (KinectCalib)this.target;
        }

        base.DrawDefaultInspector();

        if (GUILayout.Button("Save"))
        {
            k.saveConfig();
        }

        if (GUILayout.Button("Load"))
        {
            k.loadConfig();
        }
    }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }