32 lines
983 B
C#
32 lines
983 B
C#
|
using System;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace Script
|
|||
|
{
|
|||
|
public class Test : MonoBehaviour
|
|||
|
{
|
|||
|
private int index = 3;
|
|||
|
|
|||
|
private void Update()
|
|||
|
{
|
|||
|
if (Input.GetKeyDown(KeyCode.A))
|
|||
|
{
|
|||
|
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);
|
|||
|
}
|
|||
|
|
|||
|
if (Input.GetKeyDown(KeyCode.W))
|
|||
|
{
|
|||
|
index++;
|
|||
|
GlobalManager.Instance.AddInfo(index, "hhhh", "eeee");
|
|||
|
ExcelManager.Instance.SaveAndExpIndex(GlobalManager.Instance.CurrentInfo, index);
|
|||
|
Debug.Log(index);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|