_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/Test.cs

37 lines
781 B
C#
Raw Normal View History

2024-11-13 10:44:34 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
2024-11-13 12:06:05 +08:00
2024-11-13 10:44:34 +08:00
public UpdateUserInfo updateUserInfo;
2024-11-13 12:06:05 +08:00
public int sec;
2024-11-13 10:44:34 +08:00
// 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))
2024-11-13 12:06:05 +08:00
{
sec = selectGameEscape512.instance.carrySeconds;
Debug.Log("nnnnnnnnnnnnnnnn"+sec);
2024-11-13 10:44:34 +08:00
await updateUserInfo.UpdateUserInformation();
Debug.Log(updateUserInfo.UpdateUserInformation());
2024-11-13 12:06:05 +08:00
2024-11-13 10:44:34 +08:00
}
}
}