annotate Chapter5/Assets/Scripts/GameOverMgr.cs @ 2:fdab88fc2cb9

add game projects
author Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2015 23:14:45 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 using UnityEngine;
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 using System.Collections;
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 public class GameOverMgr : MonoBehaviour {
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 // Use this for initialization
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 void Start () {
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 }
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 // Update is called once per frame
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 void Update () {
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 if (Input.GetKeyDown (KeyCode.Return)) {
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 Application.LoadLevel ("StartScreen");
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 }
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 }
fdab88fc2cb9 add game projects
Yuta ANSE <e135745@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 }