コード例 #1
0
    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();
    }
コード例 #2
0
    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();
    }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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();
     }
 }