// Update is called once per frame void Update() { scrambleArea.SetActive(!doorRoom.GetState()); isActive = !lever.On; GameController.instance.globalBools[1] = lever.On; if (isActive != isEmmiting) { var emission = gas.emission; emission.enabled = isActive; emission = smoke.emission; emission.enabled = isActive; isEmmiting = isActive; gameSmoke.Switch(isActive); } if (isStarted) { EventUpdate(); } }
public override void EventFinished() { GameController.instance.GlobalSFX.PlayOneShot(gasLeak); cont.Switch(true); base.EventFinished(); isStarted = false; }
public override void EventFinished() { base.EventFinished(); isStarted = false; smoke1.Switch(true); smoke2.Switch(true); smoke3.Switch(true); }