33 lines
936 B
C#
33 lines
936 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class teamSettingPanel : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
public GameObject teamSettingPanelObj;
|
|
[SerializeField]
|
|
public GameObject[] teamElementsObj;
|
|
[SerializeField]
|
|
public GameObject[] teamCharactersObj;
|
|
|
|
void Start()
|
|
{
|
|
// teamSettingPanelObj.SetActive(false);
|
|
}
|
|
public void openTeamSettingPanel()
|
|
{
|
|
Debug.Log("打开编队设置面板");
|
|
//todo:向编队管理类拉取已有编队信息,把视图初始化为对应的编队信息
|
|
//可在此补充ui动画信息
|
|
teamSettingPanelObj.SetActive(true);
|
|
}
|
|
public void closeTeamSettingPanel()=>teamSettingPanelObj.SetActive(false);
|
|
|
|
public void updateTeamSettingElements()
|
|
{
|
|
//todo:向保存编队信息的类获取编队信息,然后重新处理teamElementsObj的信息
|
|
|
|
}
|
|
}
|