Exemplo n.º 1
0
    private void ShowClearPanel()
    {
        if (clearEft)
        {
            AudioManager.GetComponent <AudioManager>().PlaySounds("CodeComplete");
            clearEft = false;
        }

        MissionText.GetComponent <Text>().color = Color.green;
        IGUI.Clear();
    }
Exemplo n.º 2
0
    void ArrayCheck()
    {
        for (int i = 0; i < checkBocks.Length; i++)
        {
            Ray ray       = new Ray(checkBocks[i].transform.position, Vector3.up);
            int rayLength = 2;

            if (Physics.Raycast(ray, out RaycastHit hit, rayLength) && !hit.transform.CompareTag("Player"))
            {
                CodeBlock codeBlock = hit.transform.gameObject.GetComponent <CodeBlock>();
                input += codeBlock.code;
            }
        }
        if (input != null && input.Equals(answerCode))
        {
            if (input == "START")
            {
                if (!winCheck)
                {
                    audioManager.PlaySounds("CodeComplete");
                }

                winCheck = true;
                MissionText.GetComponent <Text>().color = Color.green;
                IGUI.Clear();
            }
            else
            {
                if (!winCheck)
                {
                    audioManager.PlaySounds("CodeComplete");
                    MissionText.GetComponent <Text>().color = Color.green;

                    Invoke(nameof(StageOneChangeMission), 1.0f);
                    FixAnswerBlocks();
                }
                winCheck = true;
            }
        }
        else
        {
            input = null;
        }
    }
Exemplo n.º 3
0
 private void ShowClearPanel()
 {
     IGUI.Clear();
 }