From d7e7ddd631e8dba52b78816a28b16a1415e5f001 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 20 Aug 2014 16:46:56 +0100 Subject: [PATCH] Removed save game stuff from Game class --- Assets/Fungus/Legacy/Scripts/Game.cs | 32 --------------------------- Assets/Shuttle/ShuttleGame.unity | Bin 89228 -> 89228 bytes 2 files changed, 32 deletions(-) diff --git a/Assets/Fungus/Legacy/Scripts/Game.cs b/Assets/Fungus/Legacy/Scripts/Game.cs index 41a26ade..fce9debb 100644 --- a/Assets/Fungus/Legacy/Scripts/Game.cs +++ b/Assets/Fungus/Legacy/Scripts/Game.cs @@ -38,12 +38,6 @@ namespace Fungus [Tooltip("Currently active Dialog object used to display character text and menus.")] public Dialog dialog; - /** - * Loading image displayed when loading a scene using MoveToScene() command. - */ - [Tooltip("Loading image displayed when loading a scene using MoveToScene() command.")] - public Texture2D loadingImage; - float autoHideButtonTimer; static Game instance; @@ -115,31 +109,5 @@ namespace Fungus return false; } - - /** - * Save the current game variables to persistant storage using a save game name. - * Stores the currently loaded scene name so that Game.LoadGame() can automatically move to the appropriate scene. - */ - public void SaveGame(string saveName = "_fungus") - { - GlobalVariables.SetString("_scene", Application.loadedLevelName); - GlobalVariables.Save(saveName); - } - - /** - * Loads the current game state from persistant storage using a save game name. - * This will cause the scene specified in the "_scene" string to be loaded. - * Each scene in your game should contain the necessary code to restore the current game state based on saved data. - * @param saveName The name of the saved game data. - */ - public void LoadGame(string saveName = "_fungus") - { - GlobalVariables.Load(saveName); - string sceneName = GlobalVariables.GetString("_scene"); - if (sceneName.Length > 0) - { - // MoveToScene(sceneName); - } - } } } \ No newline at end of file diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 445abeb7e80f032a4ed4a072f2c461dc091b1bb7..a4c66dc55eb07f0e2c4af4adc3f54908a88fcd03 100644 GIT binary patch delta 25 gcmeC#$=b7%wP6dRgcbYGj9E?$3