Example #1
0
 public void RestartGame()
 {
     SceneManager.LoadScene("GameScene");
     SaveLoadSystemScript.SavePlayerRobot(FindObjectOfType <PlayerRobotScript>());
     SaveLoadBackpackSystemScript.SaveBackpackItem(FindObjectOfType <BackpackScript>());
     SaveLoadMainDoorSystemScript.SaveMainDoorKey(FindObjectOfType <MainDoorKeyScript>());
 }
 public void SaveBackpack()
 {
     SaveLoadBackpackSystemScript.SaveBackpackItem(GetComponent <BackpackScript>());
 }