_xiaofang/xiaofang/Assets/ProtoBuf/test/test1.cs

21 lines
514 B
C#
Raw Normal View History

2024-12-04 15:05:38 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class test1 : Base
{
// Start is called before the first frame update
async void Start()
{
GetComponent<Image>().sprite = await GlobalObj.GetComponent<ImageLoader>().LoadImageAsync("https://fantasymonster-app.oss-cn-hangzhou.aliyuncs.com/goods/mall/c7860d8909194d479b6f27ccb922e863.png");
}
// Update is called once per frame
void Update()
{
}
}