_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/Test.cs
五条悟 2c4098fe2e add
2024-11-13 12:06:05 +08:00

37 lines
781 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public UpdateUserInfo updateUserInfo;
public int sec;
// Start is called before the first frame update
void Start()
{
updateUserInfo = new UpdateUserInfo();
}
// Update is called once per frame
void Update()
{
TestButton();
}
public async void TestButton()
{
if(Input.GetKey(KeyCode.X))
{
sec = selectGameEscape512.instance.carrySeconds;
Debug.Log("nnnnnnnnnnnnnnnn"+sec);
await updateUserInfo.UpdateUserInformation();
Debug.Log(updateUserInfo.UpdateUserInformation());
}
}
}