mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-22 18:34:32 -05:00
-added a button to credit scene to title screen
-created credit screen
This commit is contained in:
10
Assets/Scripts/UI/Title/Quit.cs
Normal file
10
Assets/Scripts/UI/Title/Quit.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Quit : MonoBehaviour
|
||||
{
|
||||
public void Exit(){
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/UI/Title/Quit.cs.meta
Normal file
11
Assets/Scripts/UI/Title/Quit.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 992610a85a5cfc840b83ca187d0a06dc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
11
Assets/Scripts/UI/Title/ReturnToTitle.cs
Normal file
11
Assets/Scripts/UI/Title/ReturnToTitle.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class ReturnToTitle : MonoBehaviour
|
||||
{
|
||||
public void backToTitle(){
|
||||
SceneManager.LoadScene("TitleScene");
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/UI/Title/ReturnToTitle.cs.meta
Normal file
11
Assets/Scripts/UI/Title/ReturnToTitle.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5e22795b893ccb4380a11b63cd2d110
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
11
Assets/Scripts/UI/Title/toCredits.cs
Normal file
11
Assets/Scripts/UI/Title/toCredits.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class toCredits : MonoBehaviour
|
||||
{
|
||||
public void ToCredits(){
|
||||
SceneManager.LoadScene("Credits");
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/UI/Title/toCredits.cs.meta
Normal file
11
Assets/Scripts/UI/Title/toCredits.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a62a8ad6fc70a704cb8c7c644d08d3ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user