public void RotateFurniture(Furniture_Recepteur recepteur, Vector3 oldRotation, Vector3 newRotation) { Commande commande = new RotateTo(recepteur.getGameObject(), oldRotation, newRotation); commande.Do(); commandeList.Push(commande); editManager.RefreshInfos(); }
public void ScaleFurniture(Furniture_Recepteur recepteur, Vector3 oldScaling, Vector3 newScaling) { Commande commande = new ScaleTo(recepteur.getGameObject(), oldScaling, newScaling); commande.Do(); commandeList.Push(commande); editManager.RefreshInfos(); }
public void MoveFurniture(Furniture_Recepteur recepteur, Vector3 oldPosition, Vector3 newPosition) { if (oldPosition != newPosition) { Commande commande = new MoveTo(recepteur.getGameObject(), oldPosition, newPosition); commande.Do(); commandeList.Push(commande); } }
public void SetName(Furniture_Recepteur recepteur, string oldName, string newName) { if (oldName != newName) { Commande commande = new SetName(recepteur.getGameObject(), oldName, newName); commande.Do(); commandeList.Push(commande); editManager.RefreshInfos(); } }