示例#1
0
    void onFakeSolve()
    {
        Audio.PlayGameSoundAtTransform(KMSoundOverride.SoundEffect.CorrectChime, Module.transform);
        if (_isDeact && barColor == goalColor)
        {
            _isSolved = true;
            Debug.LogFormat("[Nomai #{0}] Real solve! Congratulations!", _moduleId);
            FakeStatusLight.HandlePass();
            StopAllCoroutines();
            barControl.gameObject.transform.localScale = new Vector3(0f, 0f, 0f);
            return;
        }

        currentStatusLightState = StatusLightState.Green;
        timeEvents.Add("FakeSolve");
        timeEventsTimes.Add((float)timeRatio);
        FakeStatusLight.SetPass();
        _isResetting = true;

        Debug.LogFormat("[Nomai #{0}] Fake solve! Module is not interactable until next loop.", _moduleId);
    }