void Start() { chatClient = GameObject.FindGameObjectWithTag("ChatClient"); gameInformation = GameObject.FindGameObjectWithTag("GameInformation").GetComponent<GameInformation>(); peopleInformation = GameObject.FindGameObjectWithTag("PeopleInformation").GetComponent<PeopleInformation>(); databaseClient = GameObject.FindGameObjectWithTag("DatabaseClient").GetComponent<DatabaseClientScript>(); userChatText = GameObject.FindGameObjectWithTag("UserChatText").GetComponent<Text>(); optionOne = GameObject.FindGameObjectWithTag("OptionOne"); optionOneText = optionOne.GetComponent<Text>(); optionTwo = GameObject.FindGameObjectWithTag("OptionTwo"); optionTwoText = optionTwo.GetComponent<Text>(); optionThree = GameObject.FindGameObjectWithTag("OptionThree"); optionThreeText = optionThree.GetComponent<Text>(); leftBtn = GameObject.FindGameObjectWithTag("LeftButton").GetComponent<Button>(); rightBtn = GameObject.FindGameObjectWithTag("RightButton").GetComponent<Button>(); sendBtn = GameObject.FindGameObjectWithTag("SendButton").GetComponent<Button>(); skipBtn = GameObject.FindGameObjectWithTag("SkipButton").GetComponent<Button>(); sendBtn.interactable = false; leftBtn.interactable = false; rightBtn.interactable = false; optionOne.SetActive(false); optionTwo.SetActive(false); optionThree.SetActive(false); }
void Start() { databaseClient = GameObject.FindGameObjectWithTag("DatabaseClient"); gameInformation = GameObject.FindGameObjectWithTag("GameInformation").GetComponent<GameInformation>(); peopleInformation = GameObject.FindGameObjectWithTag("PeopleInformation").GetComponent<PeopleInformation>(); idText = GameObject.FindGameObjectWithTag("ID").GetComponent<Text>(); firstnameText = GameObject.FindGameObjectWithTag("Firstname").GetComponent<Text>(); surnameText = GameObject.FindGameObjectWithTag("Surname").GetComponent<Text>(); subjectText = GameObject.FindGameObjectWithTag("Subject").GetComponent<Text>(); cardnameText = GameObject.FindGameObjectWithTag("Cardname").GetComponent<Text>(); cardnumText = GameObject.FindGameObjectWithTag("Cardnum").GetComponent<Text>(); expirationdateText = GameObject.FindGameObjectWithTag("ExpirationDate").GetComponent<Text>(); codeText = GameObject.FindGameObjectWithTag("Code").GetComponent<Text>(); statusText = GameObject.FindGameObjectWithTag("Status").GetComponent<Text>(); cardnameInput = GameObject.FindGameObjectWithTag("CardNameInput").GetComponent<InputField>(); cardnumInput = GameObject.FindGameObjectWithTag("CardNumberInput").GetComponent<InputField>(); expirationdateInput = GameObject.FindGameObjectWithTag("ExpirationDateInput").GetComponent<InputField>(); codeInput = GameObject.FindGameObjectWithTag("SecurityCodeInput").GetComponent<InputField>(); submitBtn = GameObject.FindGameObjectWithTag("SubmitBtn").GetComponent<Button>(); clientBtn = GameObject.FindGameObjectWithTag("ClientBtn").GetComponent<Button>(); }
void Start() { GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManager>().PlaySound("StartupBeep"); done = false; loggedIn = false; database = GameObject.FindGameObjectWithTag("DatabaseClient"); login = GameObject.FindGameObjectWithTag("LoginClient"); chat = GameObject.FindGameObjectWithTag("ChatClient"); taskbar = GameObject.FindGameObjectWithTag("BottomTaskbar"); build = GameObject.FindGameObjectWithTag("BuildText"); email = GameObject.FindGameObjectWithTag("EmailClient"); usernameField = GameObject.FindGameObjectWithTag("Username"); people = GameObject.FindGameObjectWithTag("PeopleInformation").GetComponent<PeopleInformation>(); soundToggle = GameObject.FindGameObjectWithTag("SoundToggle"); database.SetActive(false); login.SetActive(false); chat.SetActive(false); taskbar.SetActive(false); email.SetActive(false); build.SetActive(false); soundToggle.SetActive(false); StartCoroutine(startUp()); }