Example #1
0
    public void CustomizedMotionFileAdd() //저장된 모션 데이터(O), 방금 녹화된 모션 데이터(X)
    {
        string fileName = filePath + inputField.text + ".json";

        if (!StateUpdater.isRealTimeMode)
        {
            if (motionFileForSimulator != null)
            {
                if (!File.Exists(fileName))
                {
                    recordManager.CreateMotionJsonFile(fileName, motionFileForSimulator);
                }
                else
                {
                    popUpManager.MessegePopUp("이미 저장된 이름입니다");
                }
            }
            else
            {
                popUpManager.MessegePopUp("먼저 저장된 모션파일을 실행해 주세요");
            }
            recordManager.SetDropdownOptions();
            inputField.text = string.Empty;
        }
        else
        {
            popUpManager.MessegePopUp("실시간 모드가 진행 중 입니다");
        }
    }