2023-12-26 23:25:22 +08:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Script
|
|
|
|
|
{
|
|
|
|
|
public class Test : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private int index = 3;
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
{
|
|
|
|
|
if (Input.GetKeyDown(KeyCode.A))
|
|
|
|
|
{
|
2023-12-30 14:20:55 +08:00
|
|
|
|
// index++;
|
|
|
|
|
// GlobalManager.Instance.AddInfo(index, "hhhh", "eeee");
|
|
|
|
|
// GlobalManager.Instance.AddInfo(2, "hhhh", "eeee");
|
|
|
|
|
// GlobalManager.Instance.AddInfo(3, "hhhh", "eeee");
|
|
|
|
|
// GlobalManager.Instance.AddInfo(4, "hhhh", "eeee");
|
|
|
|
|
// ExcelManager.Instance.SaveAndExpIndex(GlobalManager.Instance.SaveData);
|
|
|
|
|
// Debug.Log(index);
|
2023-12-26 23:25:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Input.GetKeyDown(KeyCode.W))
|
|
|
|
|
{
|
2023-12-30 14:20:55 +08:00
|
|
|
|
// index++;
|
|
|
|
|
// GlobalManager.Instance.AddInfo(index, "hhhh", "eeee");
|
|
|
|
|
// ExcelManager.Instance.SaveAndExpIndex(GlobalManager.Instance.CurrentInfo, index);
|
|
|
|
|
// Debug.Log(index);
|
2023-12-26 23:25:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|