Optimize arrow finding code & add commas to scores
This commit is contained in:
@@ -8,7 +8,8 @@ public class ButtonToScene : MonoBehaviour
|
||||
|
||||
void Awake()
|
||||
{
|
||||
gameObject.GetComponent<Button>().onClick.AddListener(async () => {
|
||||
gameObject.GetComponent<Button>().onClick.AddListener(async () =>
|
||||
{
|
||||
await SceneManager.LoadSceneAsync(sceneName);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user