From 0e512d41e5904f0650cbfa4bcae34807cea2fed3 Mon Sep 17 00:00:00 2001
From: stendler <stendler@mi.fu-berlin.de>
Date: Sun, 4 Feb 2018 21:55:07 +0100
Subject: [PATCH] fix buttons not working correctly

wrong references after using containers for the layout.
---
 Assets/MemoryBox/arScene/Scripts/SaveText.cs | 3 ++-
 Assets/MemoryBox/arScene/arScene.unity       | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Assets/MemoryBox/arScene/Scripts/SaveText.cs b/Assets/MemoryBox/arScene/Scripts/SaveText.cs
index 47e157f..2305031 100644
--- a/Assets/MemoryBox/arScene/Scripts/SaveText.cs
+++ b/Assets/MemoryBox/arScene/Scripts/SaveText.cs
@@ -7,6 +7,7 @@ namespace MemoryBox.arScene.Scripts
     {
         public Text Source;
         public Text Destination;
+        public GameObject Container;
         public GameObject Button;
 
         public void CopyText()
@@ -15,7 +16,7 @@ namespace MemoryBox.arScene.Scripts
             Destination.text = text;
             
             // deactivate textbox and enable button or vice versa depending if text is empty
-            Destination.gameObject.SetActive(text.Length > 0);
+            Container.SetActive(text.Length > 0);
             Button.SetActive(text.Length <= 0);
         }
     }
diff --git a/Assets/MemoryBox/arScene/arScene.unity b/Assets/MemoryBox/arScene/arScene.unity
index 8fb7cd2..95d0c4a 100644
--- a/Assets/MemoryBox/arScene/arScene.unity
+++ b/Assets/MemoryBox/arScene/arScene.unity
@@ -503,7 +503,7 @@ MonoBehaviour:
           m_StringArgument: 
           m_BoolArgument: 0
         m_CallState: 2
-      - m_Target: {fileID: 1539769880}
+      - m_Target: {fileID: 551216364}
         m_MethodName: SetActive
         m_Mode: 6
         m_Arguments:
@@ -784,7 +784,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 0
+  m_IsActive: 1
 --- !u!114 &194651072
 MonoBehaviour:
   m_ObjectHideFlags: 0
@@ -3962,6 +3962,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   Source: {fileID: 654766724}
   Destination: {fileID: 1613787920}
+  Container: {fileID: 1887593735}
   Button: {fileID: 1704763487}
 --- !u!1 &757440385
 GameObject:
@@ -8777,7 +8778,7 @@ MonoBehaviour:
   m_OnClick:
     m_PersistentCalls:
       m_Calls:
-      - m_Target: {fileID: 1539769880}
+      - m_Target: {fileID: 551216364}
         m_MethodName: SetActive
         m_Mode: 6
         m_Arguments:
-- 
GitLab