I really enjoyed using what we learned on the last project. Below is the code I wrote to make the object appear when you press space. I am already feeling confident to make coding decisions on my own. I’m excited to keep learning!
public GameObject ballPrefab;
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
Instantiate(ballPrefab);
}
}