Setup button and connect to script

Code used in this lesson:
C#
1using UnityEngine.SceneManagement;
2
3public OnRestartPress() {
4	SceneManager.LoadScene(SceneManager.GetActiveScene().name);
5}

Description

In this episode, you'll add a button, customise its color and add the script to restart the level. By the end, you'll know how to create interactive buttons!
Part of Master Unity UI course on Coco Code Learn. Chapter 2: Get started - points counter
Master Unity UI thumbnail
Master Unity UI