예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S))
     {
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
     }
 }
예제 #2
0
 void OnParticleCollision(GameObject collision)
 {
     switch (collision.transform.tag)
     {
     case "Magic":
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
         break;
     }
 }
예제 #3
0
 void OnTriggerEnter(Collider collision)
 {
     switch (collision.transform.tag)
     {
     case "Magic":
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
         break;
     }
 }
예제 #4
0
 // Update is called once per frame
 void Update()
 {
     if (timer < timeMax)
     {
         timer += Time.deltaTime;
         GetComponent <TextMesh>().text = "残り時間:" + (60 - (int)timer).ToString();
         hand.text = "残り時間:" + (60 - (int)timer).ToString();
         foreach (TextMesh obj in UI)
         {
             obj.text = "残り時間:" + (60 - (int)timer).ToString();
         }
     }
     else
     {
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.FINISH);
     }
 }