Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="scale"></param>
        /// <param name="oldScale"></param>
        /// <param name="element"></param>
        public void InsertInUnDoRedoForScale(Vector2 scale, Vector2 oldScale, GameObject element)
        {
            ICommand cmd = new ScaleCommand(scale, oldScale, element);

            _Undocommands.Push(cmd);
            _Redocommands.Clear();
        }
Exemple #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="scale"></param>
 /// <param name="oldScale"></param>
 /// <param name="element"></param>
 public void InsertInUnDoRedoForScale(Vector2 scale, Vector2 oldScale, GameObject element)
 {
     ICommand cmd = new ScaleCommand(scale, oldScale, element);
     _Undocommands.Push(cmd);
     _Redocommands.Clear();
 }