//! Saves the player's location and money.
    public void SavePlayerData()
    {
        playerInventory.SaveData();
        GameObject.Find("LanderCargo").GetComponent <InventoryManager>().SaveData();
        FileBasedPrefs.SetBool(stateManager.worldName + "oldWorld", true);

        if (PlayerPrefsX.GetPersistentBool("multiplayer") == true)
        {
            PlayerPrefsX.SetPersistentVector3(stateManager.worldName + "playerPosition", transform.position);
            PlayerPrefs.SetInt(stateManager.worldName + "money", money);
        }
        else
        {
            PlayerPrefsX.SetVector3(stateManager.worldName + "playerPosition", transform.position);
            FileBasedPrefs.SetInt(stateManager.worldName + "money", money);
        }
    }