调整编队页面UI组件结构,完善更新ui视图方法
This commit is contained in:
@@ -1,20 +1,37 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
//适用于编队 列表
|
||||
public class teamCharacterView : MonoBehaviour
|
||||
{
|
||||
public GameObject character;
|
||||
public GameObject controlButton;
|
||||
public Image levelIcon;
|
||||
public Image charcterImg;
|
||||
public Image leaderStatusIcon;
|
||||
public TMP_Text skillName;
|
||||
|
||||
public GameObject isLeader;
|
||||
public GameObject notLeader;
|
||||
|
||||
public bool isSelected =false;
|
||||
public int listIndex;
|
||||
// private TeamManager teamManager= TeamManager.Instance;
|
||||
|
||||
void Start()
|
||||
{
|
||||
{
|
||||
character = gameObject;
|
||||
controlButton = transform.Find("move").gameObject;
|
||||
levelIcon = transform.Find("Level").GetComponent<Image>();
|
||||
charcterImg = transform.Find("Character").GetComponent<Image>();
|
||||
skillName = transform.Find("SkillName").GetComponent<TMP_Text>();
|
||||
isLeader = transform.Find("isLeader").gameObject;
|
||||
notLeader = transform.Find("notLeader").gameObject;
|
||||
controlButton.SetActive(isSelected);
|
||||
Debug.Log("teamCharacterView Start,"+isSelected+","+listIndex);
|
||||
//Debug.Log("teamCharacterView Start,"+isSelected+","+listIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 单机team列表内对象时触发选定
|
||||
|
||||
Reference in New Issue
Block a user