完善UIPetInfoWindow脚本创建宠物信息预制体方法已经tips方法
This commit is contained in:
parent
37d5309c0a
commit
686ee472de
@ -31,6 +31,7 @@ namespace GameLogic
|
|||||||
private async UniTaskVoid OnClickAddtionPetBtn() // 新增宠物
|
private async UniTaskVoid OnClickAddtionPetBtn() // 新增宠物
|
||||||
{
|
{
|
||||||
await UniTask.Yield();
|
await UniTask.Yield();
|
||||||
|
CreatePetInfoPrefab();
|
||||||
}
|
}
|
||||||
private async UniTaskVoid OnClickCancleBtn() // 取消删除
|
private async UniTaskVoid OnClickCancleBtn() // 取消删除
|
||||||
{
|
{
|
||||||
@ -43,10 +44,13 @@ namespace GameLogic
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
// 新增宠物信息
|
// 创建宠物信息
|
||||||
private void UpdatePetData()
|
private void CreatePetInfoPrefab()
|
||||||
{
|
{
|
||||||
|
GameObject PetInfoPrefab = GameModule.Resource.LoadGameObject("UIPetinfoWidget");
|
||||||
|
PetInfoPrefab.transform.SetParent(m_goParent.transform);
|
||||||
|
PetInfoPrefab.transform.localPosition = Vector3.zero;
|
||||||
|
PetInfoPrefab.transform.localScale = Vector3.one;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 显示tip面板
|
// 显示tip面板
|
||||||
|
Loading…
x
Reference in New Issue
Block a user