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

30 lines
611 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
{
public UpdateUserInfo updateUserInfo;
// 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))
{
await updateUserInfo.UpdateUserInformation();
Debug.Log(updateUserInfo.UpdateUserInformation());
}
}
}