Beispiel #1
0
        /// <summary>
        /// Undoes the last action.
        /// </summary>
        public void Undo()
        {
            if (!CanUndo())
            {
                return;
            }

            index--;
            floorController.ImportFloor(states[index]);
        }
 /// <summary>
 /// Begins editing floor f.
 /// </summary>
 /// <param name="f">The floor to edit, fully loaded from server.</param>
 public void BeginEdit(Floor f)
 {
     root.SetActive(true);
     floorController.ImportFloor(f.floorJSONCache);
 }