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