_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/snailFactory/NoCard.cs

32 lines
850 B
C#
Raw Normal View History

2024-12-08 20:16:04 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class NoCard : Base
{
// Start is called before the first frame update
public Button OpenButton;
async void Start()
{
OpenButton.onClick.AddListener((async () =>
{
//9.3
buyNewFactory buyNewFactory = new buyNewFactory();
BuyNewFactoryResponse buyNewFactoryResponse = await buyNewFactory.BuyNewFactory();
string strIS = buyNewFactoryResponse.message;
addEventPopUp(strIS);
if (buyNewFactoryResponse.code == 200)
2024-12-09 12:00:50 +08:00
{
2024-12-08 20:16:04 +08:00
SnaolHouse.Instance.InitItem();
}
}));
}
// Update is called once per frame
void Update()
{
this.transform.localScale = new Vector3(1, 1, 1);
}
}