Beispiel #1
0
    private void Update()
    {
        if (_endActuation)
        {
            return;
        }

        if (IsActuation && !_endActuation)
        {
            _lift.IsLevel = true;
            bri.isLever   = true;
            bri.OpenLevel();
            _endActuation = true;
            ColliderActive(false);
        }
    }
Beispiel #2
0
    private void Update()
    {
        if (_endActuation)
        {
            return;
        }

        if (IsActuation && !_endActuation)
        {
            SoundManager.PlayMusic("Audios/Gimmick/level", false);
            bri.isLever = true;
            bri.OpenLevel();
            _endActuation = true;
            if (null != _keyAnim)
            {
                _keyAnim.gameObject.SetActive(true);
            }
            SoundManager.PlayMusic("Audios/Gimmick/bridrg_locked", false);
        }
    }