Martin Burger Input Line
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user