ewe
This commit is contained in:
parent
8f41ba628e
commit
5cbeb0097e
|
@ -27,10 +27,13 @@ public class FormationManager : MonoSingleton<FormationManager>
|
||||||
public FormationInfo formationInfo;
|
public FormationInfo formationInfo;
|
||||||
public List<UnmannedAerialVehicleManage> allUavms = new List<UnmannedAerialVehicleManage>();
|
public List<UnmannedAerialVehicleManage> allUavms = new List<UnmannedAerialVehicleManage>();
|
||||||
public List<string> formationIDs = new List<string>();
|
public List<string> formationIDs = new List<string>();
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
SyncCreateRoom.send2roomRequset += OnReciveMsg;
|
||||||
|
}
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
|
||||||
startFormationBtn.onClick.AddListener(OnStartFormation);
|
startFormationBtn.onClick.AddListener(OnStartFormation);
|
||||||
submitFormationBtn.onClick.AddListener(OnSubmit);
|
submitFormationBtn.onClick.AddListener(OnSubmit);
|
||||||
cancelFormationBtn.onClick.AddListener(OnCancel);
|
cancelFormationBtn.onClick.AddListener(OnCancel);
|
||||||
|
@ -42,10 +45,6 @@ public class FormationManager : MonoSingleton<FormationManager>
|
||||||
startFormationBtn.gameObject.SetActive(index == 0);
|
startFormationBtn.gameObject.SetActive(index == 0);
|
||||||
submitFormationBtn.gameObject.SetActive(index == 1);
|
submitFormationBtn.gameObject.SetActive(index == 1);
|
||||||
cancelFormationBtn.gameObject.SetActive(index == 1);
|
cancelFormationBtn.gameObject.SetActive(index == 1);
|
||||||
if(index == 0)
|
|
||||||
{
|
|
||||||
SyncCreateRoom.send2roomRequset -= OnReciveMsg;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
|
@ -180,7 +179,6 @@ public class FormationManager : MonoSingleton<FormationManager>
|
||||||
public void OnStartFormation()
|
public void OnStartFormation()
|
||||||
{
|
{
|
||||||
isStartFormation = true;
|
isStartFormation = true;
|
||||||
SyncCreateRoom.send2roomRequset += OnReciveMsg;
|
|
||||||
CheckBtns(1);
|
CheckBtns(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue