New Building buttons integrated + global leaderboard
This commit is contained in:
@@ -10,7 +10,7 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
public Button infoBtn;
|
||||
public CollectBtn collectBtn;
|
||||
// public Button joinHallBtn;
|
||||
// public Button repairRocketsBtn;
|
||||
public Button repairRocketsBtn;
|
||||
|
||||
[Header("info menu")]
|
||||
public GameObject infoMenu;
|
||||
@@ -36,6 +36,7 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
infoBtn.onClick.AddListener(OnInfoClicked);
|
||||
upgradeBtn.onClick.AddListener(OnUpgrade);
|
||||
collectBtn.btn.onClick.AddListener(OnCollect);
|
||||
repairRocketsBtn.onClick.AddListener(OpenSkinMenu);
|
||||
}
|
||||
|
||||
void OnSelectionChanged()
|
||||
@@ -62,7 +63,7 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
}
|
||||
|
||||
// joinHallBtn.gameObject.SetActive((Selector.selectedData == mainHall));
|
||||
// repairRocketsBtn.gameObject.SetActive((Selector.selectedData == rocketRepair));
|
||||
repairRocketsBtn.gameObject.SetActive((Selector.selectedData == rocketRepair));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -70,7 +71,7 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
infoBtn.gameObject.SetActive(false);
|
||||
collectBtn.gameObject.SetActive(false);
|
||||
// joinHallBtn.gameObject.SetActive(false);
|
||||
// repairRocketsBtn.gameObject.SetActive(false);
|
||||
repairRocketsBtn.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
upgradeMenu.SetActive(false);
|
||||
@@ -138,6 +139,10 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
descriptionTxt.text = Selector.selectedBuilding.buildingData.description;
|
||||
}
|
||||
|
||||
void OpenSkinMenu(){
|
||||
SkinShopManager.instance.Show();
|
||||
}
|
||||
|
||||
void OnCollect(){
|
||||
Debug.Log("Collecting from : " + Selector.selectedData.buildingName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user