Example #1
0
    Text messageTxt;        //성공, 실패가 출력되는 메세지

    void Awake()
    {
        eventSceneBG    = this.GetComponent <Image>();
        eventScheneChar = GameObject.Find("cut scene").GetComponent <Image>();
        LobbyScene      = GameObject.Find("Lobby");
        count           = 0;

        messageTxt = GameObject.Find("Message Text").GetComponent <Text>();

        daughter_stat = Daughter_Status.Instance;
    }
Example #2
0
    //스켸줄을 모두 등록한 후 실행했을 때 해당 스켸줄 내용 파일에 저장
    void WriteFileCurrentSchedule()
    {
        FileStream      fs            = new FileStream("Assets\\ScheduleHistory.txt", FileMode.Append, FileAccess.Write);
        StreamWriter    sw            = new StreamWriter(fs, System.Text.Encoding.UTF8);
        Daughter_Status daughter_stat = Daughter_Status.Instance;
        string          str           = "";

        str += daughter_stat.Age_Week + " ";   //★1은 더미. 회차가 들어가야 함
        str += schedule.GetAllDaughterScheduleID();
        sw.WriteLine(str);

        sw.Flush();
        sw.Close();
        fs.Close();
    }