DEG-165 [Style] 폴더 정리

This commit is contained in:
99jamin 2025-05-14 17:54:08 +09:00
parent e9c9e5a8d7
commit 901e81aaf6
46 changed files with 12 additions and 137 deletions

View File

@ -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");
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: afa35303e7c5e6141b05a11a7b5233ce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cadea41f445905f4b8d9c11723338f7c
guid: d0f5ca708f4cf5b498b576210645d179
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cf313a0298660aa4db16ced680557810
guid: 288947ebfc86ae1428beafbd2ddeebda
folderAsset: yes
DefaultImporter:
externalObjects: {}

8
Assets/KJM/Scripts.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0aceb58a275c574469f81a7b917674ec
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a49c3aa3df10e094882d67e836247adb
guid: 6511ccc376e1bf44cbbd8e500ab1d98a
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8b98513ea028982479bf6eae61121fe5
guid: 1d10d41e50b0779498b982d1f8e02b28
folderAsset: yes
DefaultImporter:
externalObjects: {}