Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S))
     {
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
     }
 }
Exemplo n.º 2
0
 void OnParticleCollision(GameObject collision)
 {
     switch (collision.transform.tag)
     {
     case "Magic":
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
         break;
     }
 }
Exemplo n.º 3
0
 void OnTriggerEnter(Collider collision)
 {
     switch (collision.transform.tag)
     {
     case "Magic":
         GameModeManager.SetSceneMode(GameModeManager.GAMEMODE.MAIN);
         break;
     }
 }
Exemplo n.º 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);
     }
 }