Exemple #1
0
        public void Destroy()
        {
            if (_Directory == null)
            {
                return;
            }

            _Directory.DesktopPosition = new Vector2Int(-8192, -8192);
            bool result = DesktopEx.desktop_set_item_position2(_Directory.Name,
                                                               _Directory._Position.x, _Directory._Position.y);

            _Directory.Delete();
            _Directory = null;
        }
Exemple #2
0
        private void FixedUpdate()
        {
            DesktopEx.desktop_get_item_indices2();

            var copy = UpdateList.ToList();

            foreach (var entry in copy)
            {
                if (entry.IsCreated == false)
                {
                    continue;
                }
                bool result = DesktopEx.desktop_set_item_position2(entry.Name,
                                                                   entry._Position.x, entry._Position.y);

                if (result)
                {
                    UpdateList.Remove(entry);
                }
            }
        }