void Start() { databaseClient = GameObject.FindGameObjectWithTag("DatabaseClient").GetComponent<DatabaseClientScript>(); gameInfo = GameObject.FindGameObjectWithTag("GameInformation").GetComponent<GameInformation>(); chatClient = GameObject.FindGameObjectWithTag("ChatClient").GetComponent<ChatClientScript>(); personCurrent = 0; }
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); }