WXMC/.svn/pristine/0b/0b74a4cff2a0affbd4729f17688d14053f752ce9.svn-base

47 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-12-04 16:18:46 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FriendManager : MonoBehaviour
{
public GameObject addFriendPopup;
public ScrollRect godsScrollView;
public GameObject ReturnSystemButton;
public GameObject ReturnOwnedGodsButton;
public WishGodPageUI wishGodPageUI;
private bool isWishGroupActive = false;
public void EnterFriendGodUI()
{
wishGodPageUI.isLock = false;
addFriendPopup.SetActive(true);
ReturnSystemButton.SetActive(false);
ReturnOwnedGodsButton.SetActive(true);
ReturnOwnedGodsButton.GetComponent<Button>().onClick.AddListener(QuitFriendGodUI);
godsScrollView.horizontal = false;
wishGodPageUI.wishGroup.SetActive(isWishGroupActive);
}
public void QuitFriendGodUI()
{
wishGodPageUI.isLock = true;
addFriendPopup.SetActive(false);
ReturnSystemButton.SetActive(true);
ReturnOwnedGodsButton.GetComponent<Button>().onClick.RemoveListener(QuitFriendGodUI);
ReturnOwnedGodsButton.SetActive(false);
godsScrollView.horizontal = true;
isWishGroupActive = wishGodPageUI.wishGroup.activeSelf;
wishGodPageUI.wishGroup.SetActive(false);
}
public void AttackUI()
{
}
}