Fixed title scene again
This commit is contained in:
parent
8785fcd3ce
commit
a12131e77f
5 changed files with 113 additions and 111 deletions
21
Assets/Scripts/StartHandler.cs
Normal file
21
Assets/Scripts/StartHandler.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class StartHandler : MonoBehaviour {
|
||||
|
||||
public Texture normalButton;
|
||||
public Texture hoverButton;
|
||||
public GUITexture guiButton;
|
||||
|
||||
void OnMouseEnter() {
|
||||
guiButton.texture = hoverButton;
|
||||
}
|
||||
|
||||
void OnMouseExit() {
|
||||
guiButton.texture = normalButton;
|
||||
}
|
||||
|
||||
void OnMouseDown() {
|
||||
Application.LoadLevel ("Main");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue