/// <summary>
    /// Starts the game.
    /// </summary>
    static void StartGame()
    {
        //Pass the finalized map to the game
        //MainGame.fullMap = WorldGen.fullMap;

        //Save the map for the future
        MapSave.SaveMap(WorldGen.fullMap);

        Debug.Log("Map Saved");
        //load the game level
        Application.LoadLevel(1);
    }
示例#2
0
    public void ExecuteSaving()
    {
        GameObject Player = GameObject.Find("Player");

        playerPosition        = new SVector3(Player.transform.position);
        playerRotation        = new SVector3(Player.transform.eulerAngles);
        playerSpeed           = new SVector3(Player.GetComponent <Rigidbody2D>().velocity);
        playerCharacteristics = Player.GetComponent <PlayerControls>().thisHealth.values;
        playerInventory       = Player.GetComponent <PlayerControls>().inventory;
        playerMunitions       = Player.GetComponent <PlayerControls>().munitions;
        playerSpells          = Player.GetComponent <PlayerControls>().spells;
        MS.SaveMap();
        talks = GameObject.Find("WorldManager").GetComponent <WorldManagement>().GetTalks();
    }