поправил меню
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -31,12 +32,19 @@ public class UIMainMenu : UICanvas
|
||||
|
||||
public void UpdateLocationMenu(Location location)
|
||||
{
|
||||
trainButtons.First(x => x.hideInDepo)
|
||||
.gameObject.SetActive(true);
|
||||
|
||||
ResetButtons();
|
||||
|
||||
switch(location)
|
||||
{
|
||||
case(Location.AprelevkaDepo):
|
||||
stationName.text = "Депо Апрелевка";
|
||||
|
||||
trainButtons.First(x => x.hideInDepo)
|
||||
.gameObject.SetActive(false);
|
||||
|
||||
break;
|
||||
|
||||
case(Location.BulevardSlavyanski):
|
||||
@@ -77,7 +85,7 @@ public class UIMainMenu : UICanvas
|
||||
aboutTrainButton.gameObject.SetActive(false);
|
||||
|
||||
if(currentTrain == null) return;
|
||||
|
||||
|
||||
currentTrain.anim.Kill();
|
||||
currentTrain = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user