コード例 #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (this.name == "EventFire")
        {
            if (FireRingFlg == false)
            {
                Window.DeleteWindow();
                Window.ShowWindow();

                FireRingFlg = true;
                //Message.ChangeText(2);
                FireRing = Instantiate(prefab_FireRing);// 入れ物の準備
                this.gameObject.SetActive(false);
            }
        }
        else if (this.name == "EventFire_Extinguish")
        {
            Window.DeleteWindow();
            Window.ShowWindow();
            this.gameObject.SetActive(false);
        }
        else if (this.name == "EventGoGame")
        {
            FadeScript.SetFadeOutFlag("Game");
            Camera.TutorialZoomCamera();
            this.gameObject.SetActive(false);
        }
        else if (this.name == "EventSplash")
        {
            Window.DeleteWindow();
            Window.ShowWindow();
            //Message.ChangeText(1);
            this.gameObject.SetActive(false);
        }
        else if (this.name == "EventObject")
        {
            Window.DeleteWindow();
            Window.ShowWindow();
            //Message.ChangeText(3);
            this.gameObject.SetActive(false);
        }
    }