Example #1
0
        /// <summary>
        /// saves the current UI data, if the app bar is to this device attached
        /// </summary>
        public void saveCurrentUIData()
        {
            if (UIContainerBar.Instance.Target != this.gameObject)
            {
                Debug.LogWarning("App bar was not attached, while saving ui data");
                return;
            }
            var newUIdata = UIContainerBar.Instance.getCurrentUIInformation();

            //if the new and the old is not the same
            if (!AppDataManager.checkUiContainerData(newUIdata, deviceData.myUIContainerData))
            {
                //overwrite all the ui data
                deviceData.myUIContainerData = newUIdata;

                //tell the app data manager
                AppDataManager.Instance.onManipulationFinished(deviceData);
            }
        }