private bool getProperty() { if (_node != null) { _jsonResult = Tools.GetStringProperty(_node, _propertyName, _jsonResult); } else { return(false); } return(true); }
private void fillSoundsList(ITab <IIGameNode> list, string scriptName) { object[] names = new object[list.Count]; for (int i = 0; i < list.Count; i++) { var indexer = new IntPtr(i); var node = list[indexer].MaxNode; string soundFile = ""; soundFile = Tools.GetStringProperty(node, "babylonjs_sound_filename", soundFile); names[i] = Path.GetFileName(soundFile); } _document.InvokeScript(scriptName, names); }