New Building buttons integrated + global leaderboard

This commit is contained in:
Sewmina
2022-09-02 03:23:34 +05:30
parent fcabaf91d9
commit 50b5ba8816
740 changed files with 21328 additions and 27004 deletions

View File

@@ -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);
}