示例#1
0
    /// <summary>
    /// Sets the grid controller and the player controller and sets objects for the save mechanic
    /// </summary>
    void Start()
    {
        gridCon   = grid.GetComponent <JDGroundSpawner>();
        playerCon = player.GetComponent <PlayerController>();

        SaveLoadController.setPlayer(player);
        SaveLoadController.setInvCon(playerCon.invCon);
        SaveLoadController.setGrid(gridCon);

        if (SaveLoadController.contin)
        {
            SaveLoadController.Load();
        }
    }