47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|