コード例 #1
0
    void Update()
    {
        if (_mapEditHelper == MapColliderHelper.eMapEditHelper.None)
        {
            return;
        }

        switch (_mapEditHelper)
        {
        case MapColliderHelper.eMapEditHelper.SaveMapBlockFile:
        {
            MapColliderHelper.SaveMapBlockFile(_mapBlockData);
            break;
        }
        }
        _mapEditHelper = MapColliderHelper.eMapEditHelper.None;
    }
コード例 #2
0
    private void MenuInput()
    {
        if (GUI.Button(new Rect(10, 650, 50, 18), "保存"))
        {
            _mapEditHelper = MapColliderHelper.eMapEditHelper.SaveMapBlockFile;
        }

        if (GUI.Button(new Rect(100, 650, 50, 18), "填充全部"))
        {
            //  Test();
        }

        MapBlockType = (eMapBlockType)EditorGUI.EnumPopup(new Rect(0, 670, 200, 18), "事件类型选择", MapBlockType);
        if (isEditMapEvent)
        {
            //string labelName = string.Format("参数设置:当前坐标 => x:{0}, y:{1}", curSelectMapBlockData.row, curSelectMapBlockData.col);
            //GUI.Label(new Rect(0, 690, 200, 18), labelName);
            //curSelectMapBlockData.param = EditorGUI.TextField(new Rect(0, 710, 200, 18), curSelectMapBlockData.param);
        }
    }