public void OnClickEditObject()
 {
     Scenes.PreviousPos   = this.SelectedElement.GetCurrentPosition();
     Scenes.PreviousScale = this.SelectedElement.GetScale();
     Scenes.AddGOParam("editedObject", this.SelectedElement.GetContainer());
     UnSelectElement();
     Scenes.LoadAdditive(Scenes.EditObject);
 }
    public void ValidateModifications()
    {
        Scenes.GetGOParameters().Clear();

        foreach (Transform elementTransform in objectContainer.transform)
        {
            if (elementTransform.transform != objectContainer.transform)
            {
                Scenes.AddGOParam(elementTransform.gameObject.GetComponentInChildren <BoxCollider>().gameObject.name, elementTransform.gameObject);
            }
        }
        Scenes.CloseScene("EditObject");
    }
 public void OnClickConfirmEditMultiple()
 {
     SplitSelectionPanel.SetActive(false);
     if (GesturesController.instance.SplitSelectionList.Count > 0)
     {
         foreach (String goName in GesturesController.instance.SplitSelectionList.Keys)
         {
             Scenes.PreviousPos   = GameObject.Find(goName).transform.position;
             Scenes.PreviousScale = GameObject.Find(goName).transform.localScale;
             Scenes.AddGOParam(goName, GameObject.Find(goName));
         }
         Scenes.LoadAdditive(Scenes.EditObject);
     }
 }