예제 #1
0
    void AddSaveXResult() //안봤을 경우 X data 추가
    {
        Stage++;
        DynaR temp = new DynaR(); //틀림, 반응시간 추가...

        temp.Stage         = Stage.ToString();
        temp.Response_Time = "0";
        temp.O_X           = "X";
        temp.BallNum       = GameManager.GM.Overlap[Stage - 1].ToString();
        Dyna_Result.DynaR.Add(temp);
    }
예제 #2
0
    public void AddSaveOResult() //봤을 경우 O data 추가
    {
        Stage++;
        DynaR temp = new DynaR();

        temp.Stage         = Stage.ToString();
        temp.Response_Time = seeTime.ToString();
        temp.O_X           = "O";
        temp.BallNum       = GameManager.GM.Overlap[Stage - 1].ToString();
        //temp.StayTime = stayTime.ToString();
        Dyna_Result.DynaR.Add(temp);

        stayTime = 0f;
    }
예제 #3
0
    void CreateCarFileR() //Dyna_Result.csv 생성
    {
        if (!System.IO.File.Exists(Dyna_Result.getPath()) || new FileInfo(Dyna_Result.getPath()).Length == 0)
        {
            string       filePath  = Dyna_Result.getPath();
            StreamWriter outStream = System.IO.File.CreateText(filePath);

            outStream.WriteLine("Response_Time,O_X");
            outStream.Close();
        }
        else
        {
            List <Dictionary <string, object> > data = CSVReader.Read(@Dyna_Result.getPath());

            for (var i = 0; i < data.Count; i++)
            {
                DynaR mt = new DynaR();
                mt.Response_Time = data[i]["Response_Time"].ToString();
                mt.O_X           = data[i]["O_X"].ToString();

                Dyna_Result.DynaR.Add(mt);
            }
        }
    }