Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        // タイトルシーンでの処理
        if (DataBank.GetCurrScene() == Scene.TITLE)
        {
            UtillityMethod.PlanetRotate(this.gameObject, -gameData.MAP_SPEED * Time.deltaTime);
        }
        // ゲームシーンでの処理
        else
        {
            UtillityMethod.PlanetRotate(this.gameObject, gameData.speed);

            if (UtillityMethod.GetMessage(Message.RESPOWN))
            {
                transform.position = new Vector3(0, 10, -10);
                transform.rotation = new Quaternion(0, 0, 0, 0);
            }

            himoController.CreateHimo(gameObject);

            DestroyChild("TitleEnd");

            // イベント処理(くしゃみ)
            if (EventDirector.can_achoo_event)
            {
                EventDirector.StartAchooEvent(gameObject);
            }
        }
    }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     if (UtillityMethod.GetMessage(Message.RESPOWN))
     {
         Spown();
     }
     else if (UtillityMethod.GetMessage(Message.SUISIDE))
     {
         Destroy();
     }
 }