Exemple #1
0
 public void undo()
 {
     if (this.model != null)
     {
         LevelObjects.removeObject(this.model);
         this.model = null;
     }
 }
Exemple #2
0
 public Transform redo()
 {
     if (this.model != null)
     {
         if (this.objectAsset != null)
         {
             LevelObjects.removeObject(this.model);
             this.model = null;
         }
         else if (this.itemAsset != null)
         {
             LevelObjects.removeBuildable(this.model);
             this.model = null;
         }
     }
     return(null);
 }