public void SubmitButton() { if (input.text != null) { int id = (int)Convert.ToUInt64(input.text); //Debug.Log(houseID); if (gameMasterRef.FindHouseID(id) && CheckNoDuplicates(id)) { houseID = id; HouseData tempHouse = gameMasterRef.ReturnHouseStats(houseID); HouseData newHouse = SetupHouseValue(tempHouse); newHouse.SetGameObjectOfSelf_BuyScreen(this.gameObject); UpdateUI(newHouse); SwitchState(3); gameMasterRef.EstablishHouseListing_Send(newHouse); gameMasterRef.contentForBuyPanel.GetComponent <BuyContent>().listOfPanels.Add(this.gameObject); } else { badHighlight.SetActive(true); StartCoroutine(ResetHighlight()); } } }
public void CreatePanelFromPhoton(HouseData theHouse) { theHouse.SetGameObjectOfSelf_BuyScreen(this.gameObject); UpdateUI(theHouse); SwitchState(3); }