コード例 #1
0
    public void OnOpenMap()
    {
        page = Page.Map;
        mapPanel.SetActive(true);
        searchPanel.SetActive(false);
        hambergerButton.SetActive(false);
        mapButton.SetActive(false);
        searchButton.SetActive(false);
        appName.SetActive(true);
        roomDataPanel.SetActive(false);

        backButton.SetActive(true);
        searchInputField.SetActive(false);
        clearButton.SetActive(false);

        canvasResolutionScript.SetAppNameInMap();
        canvasResolutionScript.SetAppNameInMap();

        canvasResolutionScript.SetMapImageInMap();
        canvasResolutionScript.SetArrowButtonInMap();
        if (MainController.instance.beginPoint != null)
        {
            showingFloor = MainController.instance.beginPoint.GetComponent <MarkerData>().GetFloor();
        }
        mapControl.UpdateMap(showingFloor);
    }
コード例 #2
0
    public void OnOpenMap()
    {
        page = Page.Map;
        mapPanel.SetActive(true);
        searchPanel.SetActive(false);
        hambergerButton.SetActive(false);
        mapButton.SetActive(false);
        searchButton.SetActive(false);
        appName.SetActive(true);
        roomDataPanel.SetActive(false);

        backButton.SetActive(true);
        searchInputField.SetActive(false);
        clearButton.SetActive(false);

        if (MainController.instance.beginPoint != null && !isErrorCantReadFile)
        {
            showingFloor = MainController.instance.beginPoint.GetComponent <NodeData>().GetParentObjectData().GetParentFloorObject();
        }
        mapControl.UpdateMap(showingFloor);
    }