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(); } }
void Awake() { instance = this; }