完成编队预设切换、编队位置交换、队长设置功能
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class TeamIndexSetterView : MonoBehaviour
|
||||
{
|
||||
[SerializeField] public GameObject isSelectedStatus;
|
||||
public bool isSelected;
|
||||
|
||||
public int index;
|
||||
|
||||
|
||||
|
||||
public void setTeamSettingSelect()
|
||||
{
|
||||
isSelected = true;
|
||||
isSelectedStatus.SetActive(true);
|
||||
TeamManager.Instance.setCurrentSelectedTeamSetting(index);
|
||||
}
|
||||
public void setUnSelectedTeamSetting()
|
||||
{
|
||||
isSelected = false;
|
||||
isSelectedStatus.SetActive(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user