Collectables stored + Metal and Oxygen added to game
This commit is contained in:
@@ -52,7 +52,7 @@ public class SelectedItemMenu : MonoBehaviour
|
||||
if(Selector.selectedData.collectable){
|
||||
collectBtn.gameObject.SetActive(true);
|
||||
Debug.Log("Last collected : " +Selector.selectedBuilding.lastCollected );
|
||||
collectBtn.Set(Selector.selectedBuilding.lastCollected,Selector.selectedData.productinoRates[Selector.selectedBuilding.curLevel]);
|
||||
collectBtn.Set(Selector.selectedData.buildingName,Selector.selectedBuilding.lastCollected,Selector.selectedData.productinoRates[Selector.selectedBuilding.curLevel],Selector.selectedData.resourceType);
|
||||
}else{
|
||||
collectBtn.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user