Beispiel #1
0
    public SaveInfo getSaveInfo() // 현재 플레이어의 정보를  저장정보로 얻기
    {
        if (objPlayer == null)
        {
            return(null);
        }

        SaveInfo info       = new SaveInfo();
        Player   playerInfo = getPlayerInfo();

        System.DateTime time     = System.DateTime.Now;
        string          strDate  = time.Year.ToString() + "년 " + time.Month.ToString() + "월 " + time.Day.ToString() + "일";
        string          strTime  = time.Hour.ToString() + "시 " + time.Minute.ToString() + "분 " + time.Second.ToString() + "초";
        string          saveName = strDate + " " + strTime;

        info.setInfo(saveName, playerInfo.hp, playerInfo.sp, playerInfo.exp, playerInfo.level, jobNewSelected, getCurrentStageInfo().stageName, getCurrentStageInfo().sceneName, playerInfo.transform.position, strDate, strTime);

        return(info);
    }