Work
This commit is contained in:
20
Assets/Scripts/StartMenuController.cs
Normal file
20
Assets/Scripts/StartMenuController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class StartMenuController : MonoBehaviour
|
||||
{
|
||||
public void OnStartClick()
|
||||
{
|
||||
SceneManager.LoadScene("GameScene");
|
||||
}
|
||||
|
||||
public void OnExitClick()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorApplication.isPlaying = false;
|
||||
#endif
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/StartMenuController.cs.meta
Normal file
11
Assets/Scripts/StartMenuController.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f58874635b9cec04c81a0c2355758873
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
12
Assets/Scripts/TitleJuice.cs
Normal file
12
Assets/Scripts/TitleJuice.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TitleJuice : MonoBehaviour
|
||||
{
|
||||
void Start()
|
||||
{
|
||||
// Scale the gameobject to 2.0 in 1.5 seconds
|
||||
iTween.ScaleTo(gameObject, iTween.Hash("x", 1.2, "y", 1.2, "time", 1.5, "looptype", "pingpong", "easetype", iTween.EaseType.easeInOutQuad));
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/TitleJuice.cs.meta
Normal file
11
Assets/Scripts/TitleJuice.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04c6124a5b7364d4da5d42d887c9cf70
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user