Skip to content
Snippets Groups Projects
ShopMenu.cs 311 B
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class ShopMenu : MonoBehaviour {

    public string sceneName;

	// Update is called once per frame
	void Update () {
        if (Input.GetKeyDown("f")) {
            SceneManager.LoadScene(sceneName);
        }
    }
}