Martin Burger Input Line

This commit is contained in:
Tim
2025-06-30 23:23:11 +02:00
parent 513ba14147
commit ca2db2830a
2 changed files with 3 additions and 14 deletions

View File

@@ -8328,10 +8328,9 @@ MonoBehaviour:
m_EditorClassIdentifier:
bms: {fileID: 624025131}
mm: {fileID: 1519836175}
buttonCanvas: {fileID: 0}
buttonCanvas: {fileID: 525196400}
explodeButton: {fileID: 465093186}
unexplodeButton: {fileID: 0}
cmsCanvas: {fileID: 0}
cmsCanvas: {fileID: 1509914124}
--- !u!224 &576843183
RectTransform:
m_ObjectHideFlags: 0

View File

@@ -7,7 +7,6 @@ public class ReturnButtonBehaviour : MonoBehaviour
public ModelManager mm;
public GameObject buttonCanvas;
public GameObject explodeButton;
public GameObject unexplodeButton;
public GameObject cmsCanvas;
void Start()
@@ -15,23 +14,14 @@ public class ReturnButtonBehaviour : MonoBehaviour
GetComponent<Button>().onClick.AddListener(OnClick);
}
private void OnClick()
void OnClick()
{
Debug.Log("Return to Menu clicked");
mm.OpenSelector();
mm.BaseModelBehaviour.ClearChildren();
explodeButton.SetActive(true);
unexplodeButton.SetActive(false);
buttonCanvas.SetActive(false);
cmsCanvas.SetActive(false);
}
public void Activate()
{
gameObject.SetActive(true);
//var cameraTf = GameObject.Find("[BuildingBlock] Camera Rig").transform;
//gameObject.transform.position = cameraTf.position + new Vector3(5f,-0.5f,5f);
//gameObject.transform.rotation = Quaternion.LookRotation(gameObject.transform.position - cameraTf.position);
}
}