DEG-165 폴더 정리
This commit is contained in:
parent
a1eef9ef8d
commit
f900b17f1f
BIN
Assets/KJM/KJM.unity
(Stored with Git LFS)
BIN
Assets/KJM/KJM.unity
(Stored with Git LFS)
Binary file not shown.
@ -1,122 +0,0 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
/// <summary>
|
||||
/// 테스트용 임시 클래스
|
||||
/// </summary>
|
||||
public class TestScript : MonoBehaviour,ISaveable
|
||||
{
|
||||
//던전
|
||||
// private int attackPowerLevel;
|
||||
// private int attackSpeedLevel;
|
||||
// private int heartLevel;
|
||||
// private int moveSpeedLevel;
|
||||
// private int dashCoolDownLevel;
|
||||
private int stageLevel;
|
||||
|
||||
//일상
|
||||
private float time;
|
||||
private int currentDay;
|
||||
private float health;
|
||||
private float reputation;
|
||||
private int mealCount;
|
||||
private int houseworkCount;
|
||||
|
||||
/// <summary>
|
||||
/// 스탯값 랜덤 변화
|
||||
/// </summary>
|
||||
public void ChangeValue()
|
||||
{
|
||||
float floatValue = Random.Range(0f, 2f);
|
||||
int intValue = Random.Range(0, 10);
|
||||
|
||||
// attackPowerLevel = intValue;
|
||||
// attackSpeedLevel = intValue;
|
||||
// heartLevel = intValue;
|
||||
// moveSpeedLevel = intValue;
|
||||
//stageLevel = intValue;
|
||||
|
||||
|
||||
// time = floatValue;
|
||||
// currentDay = intValue;
|
||||
// health = floatValue;
|
||||
// reputation = floatValue;
|
||||
mealCount = intValue;
|
||||
houseworkCount = intValue;
|
||||
|
||||
Debug.Log("ChangeValue : " + floatValue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 인터페이스 함수1, 데이터 불러오기
|
||||
/// </summary>
|
||||
/// <param name="save"></param>
|
||||
public void ApplySaveData(Save save)
|
||||
{
|
||||
if (save?.dungeonSave != null)
|
||||
{
|
||||
// attackPowerLevel = save.dungeonSave.attackPowerLevel;
|
||||
// attackSpeedLevel = save.dungeonSave.attackSpeedLevel;
|
||||
// heartLevel = save.dungeonSave.heartLevel;
|
||||
// moveSpeedLevel = save.dungeonSave.moveSpeedLevel;
|
||||
// dashCoolDownLevel = save.dungeonSave.dashCoolDownLevel;
|
||||
//stageLevel = save.dungeonSave.stageLevel;
|
||||
}
|
||||
|
||||
if (save?.homeSave != null)
|
||||
{
|
||||
// time = save.homeSave.time;
|
||||
// currentDay = save.homeSave.currentDay;
|
||||
// health = save.homeSave.health;
|
||||
// reputation = save.homeSave.reputation;
|
||||
//mealCount = save.homeSave.mealCount;
|
||||
//houseworkCount = save.homeSave.houseworkCount;
|
||||
|
||||
Debug.Log("ApplySaveData : " + reputation);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 인터페이스 함수2, 데이터 전달
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Save ExtractSaveData()
|
||||
{
|
||||
return new Save
|
||||
{
|
||||
dungeonSave = new DungeonSave()
|
||||
{
|
||||
// attackPowerLevel = this.attackPowerLevel,
|
||||
// attackSpeedLevel = this.attackSpeedLevel,
|
||||
// heartLevel = this.heartLevel,
|
||||
// moveSpeedLevel = this.moveSpeedLevel,
|
||||
// dashCoolDownLevel = this.dashCoolDownLevel,
|
||||
//stageLevel = this.stageLevel,
|
||||
|
||||
},
|
||||
|
||||
homeSave = new HomeSave
|
||||
{
|
||||
// time = this.time,
|
||||
// currentDay = this.currentDay,
|
||||
// health = this.health,
|
||||
// reputation = this.reputation,
|
||||
//mealCount = this.mealCount,
|
||||
//houseworkCount = this.houseworkCount
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 씬 전환 테스트용 함수
|
||||
/// </summary>
|
||||
public void SceneChange()
|
||||
{
|
||||
SceneManager.LoadScene("Main");
|
||||
}
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: afa35303e7c5e6141b05a11a7b5233ce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf313a0298660aa4db16ced680557810
|
||||
guid: 8783c42f33ecc444b8597cab31b4a529
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cadea41f445905f4b8d9c11723338f7c
|
||||
guid: 515bd1876befe8342a4f2bb2baffc889
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b1f8dc566755f2446a76afd19a36f86b
|
||||
guid: bb76833ba5f191b4a84417a5b1878fc5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
8
Assets/KJM/Script.meta
Normal file
8
Assets/KJM/Script.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0aceb58a275c574469f81a7b917674ec
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a49c3aa3df10e094882d67e836247adb
|
||||
guid: c6b999a32c0c6a24ea4af097487342e3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b98513ea028982479bf6eae61121fe5
|
||||
guid: e61dfb668ccb0564aa5436e38633c388
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
Loading…
x
Reference in New Issue
Block a user