void RPC_ShowPropertyCardPanel(string title, int id, int price, int mortgage, int rent1, int rent2, int rent3, int rent4) { TrainStationCardPanel.SetActive(true); GameObject.Find("PropertyName").GetComponent <Text>().text = title; GameObject.Find("RentText (1)").GetComponent <Text>().text = "£" + rent1.ToString(); GameObject.Find("RentText (2)").GetComponent <Text>().text = "£" + rent2.ToString(); GameObject.Find("RentText (3)").GetComponent <Text>().text = "£" + rent3.ToString(); GameObject.Find("RentText (4)").GetComponent <Text>().text = "£" + rent4.ToString(); GameObject.Find("RentText (6)").GetComponent <Text>().text = "£" + mortgage.ToString(); }
void Awake() { CCDialoug.SetActive(false); PropertyCardPanel.SetActive(false); Dialoge.SetActive(false); TrainStationCardPanel.SetActive(false); UtilityPanel.SetActive(false); if (!PhotonNetwork.IsConnected) { SceneManager.LoadScene(0); return; } }
void RPC_ClosePanel() { if (PropertyCardPanel.activeInHierarchy) { PropertyCardPanel.SetActive(false); } else if (CCDialoug.activeInHierarchy) { CCDialoug.transform.GetChild(0).gameObject.SetActive(false); CCDialoug.SetActive(false); } else if (Dialoge.activeInHierarchy) { Dialoge.SetActive(false); } else if (TrainStationCardPanel.activeInHierarchy) { TrainStationCardPanel.SetActive(false); } else if (UtilityPanel.activeInHierarchy) { UtilityPanel.SetActive(false); } }