Beispiel #1
0
        void SetupKeyOnPressed(KeyboardUtils.KeyValue keyValue)
        {
            keyChain.keyChain.Add(keyValue);
            Image img = m_VisualKeyIndicator[keyChain.keyChain.Count - 1];

            img.gameObject.SetActive(true);
            img.material.DOFloat(0, "_AlphaVanishGate", 1f);

            if (keyChain.keyChain.Count >= 1)
            {
                EnableResetButton();
            }
            if (keyChain.keyChain.Count >= 4)
            {
                EnableConfirmButton();
            }
        }
Beispiel #2
0
        void InputKeyOnPressed(KeyboardUtils.KeyValue keyValue)
        {
            if (keyValue == sequence[0] && !locked)
            {
                sequence.RemoveAt(0);
            }
            else
            {
                locked = true;
            }

            if (sequence.Count == 0 && !locked)
            {
                StartMainApp();
                return;
            }
            keyChainIndicator++;
            if (keyChainIndicator >= m_PasscodeKey.Length)
            {
                // TODO ------- Out of length, then punish the user
                Debug.Log("Ran out of keys. Your will be PUNISHED!");
                StartMainApp();
            }
        }