void EVRefuse3() { Door1.GetComponent <Object_Door>().DoorSwitch(); Gas1.SetActive(true); Gas2.SetActive(true); StopTimer = true; }
void Scene1() { Timer = Timer1_5; Door1.GetComponent <Object_Door>().DoorSwitch(); Guard1_con.SetLookAt(playerHead); Guard1_con.PlaySound(Dialogs[1], true); EventState = 1; Guard2_con.AnimTrigger(2); }
void Start() { sr = gameObject.GetComponent <SpriteRenderer>(); if (Lift) { oc = Lift.GetComponent <open_close>(); } if (Door1) { oc1 = Door1.GetComponent <open_close>(); oc2 = Door2.GetComponent <open_close>(); } }
void StartEvent() { if (GlobalValues.playIntro) { GameController.instance.ambianceController.ChangeAmbiance(Ambiance, 8); MusicPlayer.instance.StartMusic(MusIntro); GameController.instance.StopTimer = false; GameController.instance.doGameplay = false; GameController.instance.playercache.playerWarp(playerPos.transform.position, playerPos.transform.eulerAngles.y); introEventStart = true; } else { // RenderSettings.fog = true; GameController.instance.DefMusic(); GameController.instance.DefaultAmbiance(); GameController.instance.StopTimer = true; GameController.instance.doGameplay = true; GameController.instance.canSave = true; GameController.instance.CullerFlag = true; Destroy(introZone); if (!SaveSystem.instance.playData.worldsCreateds[(int)GameController.instance.worldName]) { GameController.instance.SetMapPos(0, 10); } DestroyImmediate(this); } Guard1_con = Guard1.GetComponent <EV_Puppet_Controller>(); Guard2_con = Guard2.GetComponent <EV_Puppet_Controller>(); playerHead = Camera.main.transform; Player = GameController.instance.player; Timer = 5; if (GlobalValues.mapseed.Contains("IntroConvo")) { AsyncScene_1(); Door1.GetComponent <Object_Door>().DoorSwitch(); ActiveTimer = false; } }