_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/LqUiScripts/FriendPanel.cs
2024-11-25 22:18:57 +08:00

30 lines
670 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FriendPanel : MonoBehaviour
{
public GameObject friendinfoPrefab;
public Transform friendList;
public GameObject invitefriendsPanel;
// Start is called before the first frame update
void Start()
{
for(int i=0;i<6;i++)
{
GameObject slot = GameObject.Instantiate(friendinfoPrefab, friendList);
}
}
// Update is called once per frame
void Update()
{
}
public void SetFriendPanel()
{
transform.gameObject.SetActive(false);
invitefriendsPanel.SetActive(true);
}
}