void Start() { List <string> keys = new List <string>(); keys.Add("Check Point"); Dictionary <string, object> d = new Dictionary <string, object>(); d = gm.GetInfo(keys); string scene = d["Check Point"] as string; gm.LoadScene(scene); }
void Awake() { aux = 0; flag = false; gameManager = GameManagerGeneric.Instance; Dictionary<string,object> data; List<string> info = new List<string>(); info.Add("CurrentScene"); data = gameManager.GetInfo(info); level =(string) data["CurrentScene"]; Invoke("ChangeMenuScene", changeToMenu); if(Application.loadedLevelName == "Game Over") flag = true; }
void Start() { List <string> keys = new List <string>(); Dictionary <string, object> info; string total; keys.Add("Total Rooms"); info = gm.GetInfo(keys); int high = (int)info["Total Rooms"]; total = high.ToString(); totalRooms.text = "Total Rooms: " + total; PlayerPrefs.SetInt("Last Room", high); }