private void ShowClearPanel() { if (clearEft) { AudioManager.GetComponent <AudioManager>().PlaySounds("CodeComplete"); clearEft = false; } MissionText.GetComponent <Text>().color = Color.green; IGUI.Clear(); }
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; } }
private void ShowClearPanel() { IGUI.Clear(); }