コード例 #1
0
    public void LoadPlayer()
    {
        PlayerData data = SaveSystem.LoadPlayer();

        inventory.LoadInventory();

        health = data.health;
        //Vector3 position;
        //position.x = data.position[0]; //Not necessary, as the player always loads/saves in the same spot. We can populate this later.
        //position.y = data.position[1];
        //position.z = data.position[2];
        //transform.position = position;
    }