1
This commit is contained in:
parent
dd6eb65556
commit
e33e938803
@ -1,5 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@ -14,11 +16,16 @@ namespace GameLogic
|
||||
public RawImage m_HeadIcon;
|
||||
|
||||
|
||||
public void OnInit(string teamName, string playerName, string imgUrl)
|
||||
public async Task OnInit(string teamName, string playerName, string imgUrl)
|
||||
|
||||
{
|
||||
m_teamName.text = teamName;
|
||||
m_PlayerName.text = playerName;
|
||||
AsyncImageDownload.Instance.SetAsyncImage(imgUrl, m_HeadIcon);
|
||||
|
||||
|
||||
await UniTask.Delay(2000);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user