void Start() { playfabmanager = GameObject.Find("PlayFabManager").GetComponent <PlayFabManager>(); panelonoff = GameObject.Find("PanelOnOff").GetComponent <PanelOnOff>(); //Login = GameObject.FindWithTag("Login"); //Lobby = GameObject.FindWithTag("Lobby"); //RoomCreate = GameObject.FindWithTag("RoomCreate"); //Room = GameObject.FindWithTag("Room"); //RoomInside = GameObject.FindWithTag("RoomInside"); LobbyButtons = GameObject.Find("Lobby").GetComponentsInChildren <Button>(); RoomButtons = GameObject.Find("RoomList").GetComponentsInChildren <Button>(); GameStartButton = GameObject.FindWithTag("GameStartButton").GetComponent <Button>(); ServerState = GameObject.FindWithTag("ServerState").GetComponent <Text>(); ListText = GameObject.FindWithTag("List").GetComponent <Text>(); PlayerNameArray = GameObject.Find("RoomInside").GetComponentsInChildren <Text>(); for (int i = 0; i < 4; i++) { bReadyCheck[i] = false; } for (int i = 0; i < 2; i++) { LobbyButtons[i].interactable = false; } }
void Start() { roomInformation = GameObject.Find("RoomManager").GetComponent <RoomInformation>(); panelonoff = GameObject.Find("PanelOnOff").GetComponent <PanelOnOff>(); ResetPassword = GameObject.Find("ResetPassword"); LoginCheckText = GameObject.Find("LoginCheck").GetComponent <Text>(); IdCheckText = GameObject.Find("IdCheckText").GetComponent <Text>(); PasswordCheckText = GameObject.Find("PasswordCheckText").GetComponent <Text>(); NickNameCheckText = GameObject.Find("NickNameCheckText").GetComponent <Text>(); EmailCheckText = GameObject.Find("EmailCheckText").GetComponent <Text>(); SendEmailCheckText = GameObject.Find("SendEmailCheckText").GetComponent <Text>(); }