Пример #1
0
 void EarthQuake()
 {
     SinarioFlag = 2;
     Debug.Log("地震が発生しました。Flag:" + SinarioFlag);
     Efect.SetActive(true);
     Siya.SetActive(true);
     //NPC.SetActive(true);
     Wave.GetComponent <WaveController>().enabled = true;
     //GetComponent<NPCControl>().enabled = true;
 }
Пример #2
0
    public int ShakeCount = 0;                          //地震発生のカメラ振動を捕える補数。初期値0


    // Start is called before the first frame update
    void Start()
    {
        // オープニング
        GameOpening();
        SinarioFlag    = 0;
        MapDisplayFlag = 0;
        ShakeCount     = 0;
        Efect.SetActive(false);
        Siya.SetActive(false);
        StartCamera.SetActive(true);
        OtherCamara.SetActive(false);
        //Trajectory.SetActive(false);
        ResultCamera.SetActive(false);
        //NPC.SetActive(false);
        Wave.GetComponent <WaveController>().enabled = false;
        Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = false;
        //GetComponent<NPCControl>().enabled = false;
        ControllText.SetActive(false);
        audioSource.SetActive(false);
        MapDisplay.SetActive(false);
        HinanArea.SetActive(false);
        Notification.SetActive(false);
        Atari      = GameObject.Find("Atari");
        atari      = Atari.GetComponent <Atari>();
        AreaCount  = GameObject.Find("hinanarea (2)");
        HinanCount = AreaCount.GetComponent <HinanAreaCount>();
        HighCount  = GameObject.Find("hinanarea (1)");
        HighHinan  = HighCount.GetComponent <HighHinanAreaCount>();
        //HighCount = GameObject.Find("hinanarea (1)");
        //HighhinanCount = HighCount.GetComponent<HinanareaCount>();
        //Changer = GameObject.Find("MainCamera");
        Camerachanger = OtherCamara.GetComponent <CameraChanger>();
        if (HinanCount.AreaCount == 0)
        {
            FinishButton.SetActive(false);
        }
    }