Added start screen button and text.

This commit is contained in:
Joey Payne 2014-04-27 19:49:57 -06:00
commit 2639e11238
9 changed files with 3278 additions and 618 deletions

View file

@ -3,19 +3,19 @@ using System.Collections;
public class StartHandler : MonoBehaviour {
public Texture normalButton;
public Texture hoverButton;
public GUITexture guiButton;
public Sprite normalButton;
public Sprite hoverButton;
void OnMouseEnter() {
guiButton.texture = hoverButton;
guiTexture.texture = hoverButton.texture;
}
void OnMouseExit() {
guiButton.texture = normalButton;
guiTexture.texture = normalButton.texture;
}
void OnMouseDown() {
Application.LoadLevel ("Main");
}
}

View file

@ -2,7 +2,10 @@ fileFormatVersion: 2
guid: 41037e5923310ee4fb43e2da9485d6dc
MonoImporter:
serializedVersion: 2
defaultReferences: []
defaultReferences:
- normalButton: {fileID: 2800000, guid: d40467344d238024891b4685f00a717b, type: 3}
- hoverButton: {fileID: 2800000, guid: 4e31eb4eaadf3314e8da10b79a0d43fa, type: 3}
- guiButton: {instanceID: 0}
executionOrder: 0
icon: {instanceID: 0}
userData: