LeaderboardDone
This commit is contained in:
@@ -82,5 +82,7 @@ public static class DataManager{
|
||||
public static void SelectPoge(int i){
|
||||
PlayerPrefs.SetInt("poge",i);
|
||||
PlayerPrefs.Save();
|
||||
|
||||
selectedPogeLevel = i;
|
||||
}
|
||||
}
|
||||
@@ -28,4 +28,8 @@ public class GameUI : MonoBehaviour
|
||||
public void Restart(){
|
||||
SceneManager.LoadScene(2);
|
||||
}
|
||||
|
||||
public void Menu(){
|
||||
SceneManager.LoadScene(0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ public class Store : MonoBehaviour
|
||||
return;
|
||||
}else{
|
||||
DataManager.total =(int)(DataManager.total- goldPrice);
|
||||
DataManager.PurchasePoge("gold");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -71,7 +72,7 @@ public class Store : MonoBehaviour
|
||||
return;
|
||||
}else{
|
||||
DataManager.total =(int)(DataManager.total- diamondPrice);
|
||||
|
||||
DataManager.PurchasePoge("diamond");
|
||||
}
|
||||
}
|
||||
poge_silver.transform.GetChild(0).gameObject.SetActive(false);
|
||||
|
||||
Reference in New Issue
Block a user