コード例 #1
0
    void Update()
    {
        if (FinalDoorOpened == false)
        {
            if (RedKeyLockScript.IsDoorOpen() == true && BlueKeyLockScript.IsDoorOpen() == true && YellowKeyLockScript.IsDoorOpen() == true)
            {
                doorSound.PlayOneShot(doorOpening);
                FinalDoorOpened = true;


                FinalEventAnimation.SetActive(true);
                ms.DisableFlashIfNeeded();
                ms.GameRunning = false;
                ms.DeactiveHighlighting();
            }
        }
    }