コード例 #1
0
    // 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();
        }
    }
コード例 #2
0
 public override void EventFinished()
 {
     GameController.instance.GlobalSFX.PlayOneShot(gasLeak);
     cont.Switch(true);
     base.EventFinished();
     isStarted = false;
 }
コード例 #3
0
 public override void EventFinished()
 {
     base.EventFinished();
     isStarted = false;
     smoke1.Switch(true);
     smoke2.Switch(true);
     smoke3.Switch(true);
 }