유닛 엑셀 작업 완료

This commit is contained in:
김판돌 2023-11-26 21:42:32 +09:00
parent 4df945a99a
commit bb3c73ae50
3 changed files with 10 additions and 2 deletions

View File

@ -168,6 +168,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f71dc23ac80b51f4087e4120eb7f7893, type: 3} m_Script: {fileID: 11500000, guid: f71dc23ac80b51f4087e4120eb7f7893, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
testlist: 0100000002000000030000000400000005000000
--- !u!1 &753435365 --- !u!1 &753435365
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -9,14 +9,21 @@ public class GameManager : DontDestroy<GameManager>
public eScene NowScene; public eScene NowScene;
public bool Over; public bool Over;
private CoroutineHandle corExcel;
/// <summary>
/// 현재 엑셀 처리가 끝났는지 확인하는 부분.
/// </summary>
public bool isExcel { get { return corExcel != null || corExcel.IsRunning; } }
protected override void OnStart() protected override void OnStart()
{ {
DownlodeResp request = new DownlodeResp(); DownlodeResp request = new DownlodeResp();
request.Request((data) => request.Request((data) =>
{ {
Statics.excelDatas = JsonConvert.DeserializeObject<ExcelDatas>(Crypto.Instance.Decompress(data.data)); Statics.excelDatas = JsonConvert.DeserializeObject<ExcelDatas>(Crypto.Instance.Decompress(data.data));
corExcel = Timing.RunCoroutine(Statics.excelDatas.ToJson());
Statics.version = data.version; Statics.version = data.version;
Timing.RunCoroutine(Statics.excelDatas.ToJson());
}); });
} }

View File

@ -9,7 +9,7 @@ public class Test : MonoBehaviour
[ContextMenu("test")] [ContextMenu("test")]
public void test() public void test()
{ {
Debug.Log(JsonConvert.SerializeObject(testlist)); //Debug.Log(JsonConvert.SerializeObject(testlist));
//DownlodeResp request = new DownlodeResp(); //DownlodeResp request = new DownlodeResp();
//request.Request((data) => //request.Request((data) =>
//{ //{