Added title scene
This commit is contained in:
parent
6220e2d0e8
commit
76844a8da5
24 changed files with 4158 additions and 250 deletions
20
Assets/StartHandler.cs
Normal file
20
Assets/StartHandler.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class StartHandler : MonoBehaviour {
|
||||
|
||||
public Texture normalButton;
|
||||
public Texture hoverButton;
|
||||
|
||||
void OnMouseEnter() {
|
||||
guiTexture.texture = hoverButton;
|
||||
}
|
||||
|
||||
void OnMouseExit() {
|
||||
guiTexture.texture = normalButton;
|
||||
}
|
||||
|
||||
void OnMouseDown() {
|
||||
Application.LoadLevel ("Main");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue