Exemplo n.º 1
0
        public bool BringSceneDelay(SceneInfo si)
        {
            int index = SceneInfos.IndexOf(si);

            if (index < 0 || index == SceneInfos.Count - 1)
            {
                return(false);
            }
            SceneInfos.Remove(si);
            SceneInfos.Insert(index + 1, si);
            OperationHistory.Instance.IsDirty = true;
            return(true);
        }
Exemplo n.º 2
0
        public bool BringSceneEarly(SceneInfo si)
        {
            int index = SceneInfos.IndexOf(si);

            if (index <= 0)
            {
                return(false);
            }
            var si1 = SceneInfos[index - 1];

            SceneInfos.Remove(si1);
            SceneInfos.Insert(index, si1);
            OperationHistory.Instance.IsDirty = true;
            return(true);
        }