예제 #1
0
    void Start()
    {
        string     path   = IOUtils.GetFilePathFor(this.GetType(), cfgfile);
        ConfigNode config = ConfigNode.Load(path);

        ConfigNode.LoadObjectFromConfig(this, config);
        xpos = ALTIMETER_XCOORD;
    }
예제 #2
0
    public void OnEndDrag(PointerEventData evtdata)
    {
        ALTIMETER_XCOORD = xpos;
        ConfigNode config = ConfigNode.CreateConfigFromObject(this);
        string     path   = IOUtils.GetFilePathFor(this.GetType(), cfgfile);

        config.Save(path);
    }