예제 #1
0
 public void OpenSavedgame(MyLoadedGame gameToSave)      //open Saved Game is ran when we choose a game file
 //this should be ran in the Game Select Screen, and will set
 //our game saver to that game file, so we are only working on
 //and modifying the values of that one game save
 {
     GameSaver.SetGame(gameToSave);
 }
예제 #2
0
 public void OpenSavedgame(MyLoadedGame gameToSave)
 {
     //open Saved Game is ran when we choose a game file
     //this should be ran in the Game Select Screen, and will set
     //our game saver to that game file, so we are only working on
     //and modifying the values of that one game save
     GameSaver.SetGame (gameToSave);
 }
예제 #3
0
    public void SetGame(MyLoadedGame myNewGame)      //we call this function through the UI to set the game that we are currently playing
    {
        GameStats getGame = new GameStats();

        if (myNewGame == MyLoadedGame.GameOne)
        {
            myGame  = _myGames.GameOne;
            curGame = MyLoadedGame.GameOne;
        }
        else if (myNewGame == MyLoadedGame.GameTwo)
        {
            myGame  = _myGames.GameTwo;
            curGame = MyLoadedGame.GameTwo;
        }
        else if (myNewGame == MyLoadedGame.GameThree)
        {
            myGame  = _myGames.GameThree;
            curGame = MyLoadedGame.GameThree;
        }

        //Debug.Log (curGame);
    }