void Start() { string path = IOUtils.GetFilePathFor(this.GetType(), cfgfile); ConfigNode config = ConfigNode.Load(path); ConfigNode.LoadObjectFromConfig(this, config); xpos = ALTIMETER_XCOORD; }
public void OnEndDrag(PointerEventData evtdata) { ALTIMETER_XCOORD = xpos; ConfigNode config = ConfigNode.CreateConfigFromObject(this); string path = IOUtils.GetFilePathFor(this.GetType(), cfgfile); config.Save(path); }