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); } }
void StopShake() { OtherCamara.GetComponent <CameraShake>().enabled = false; Debug.Log("振動は止まりました。 Flag:" + SinarioFlag); SinarioFlag = 4; }