Пример #1
0
    void Awake()
    {
        CCDialoug.SetActive(false);
        PropertyCardPanel.SetActive(false);
        Dialoge.SetActive(false);
        TrainStationCardPanel.SetActive(false);
        UtilityPanel.SetActive(false);

        if (!PhotonNetwork.IsConnected)
        {
            SceneManager.LoadScene(0);
            return;
        }
    }
Пример #2
0
 void RPC_ShowPropertyCardPanel(string title, int id, int price, int mortgage, int rent, int rent1, int rent2, int rent3, int rent4, int rent5,
                                int houseCost, int hotelCost)
 {
     PropertyCardPanel.SetActive(true);
     GameObject.Find("PropertyName").GetComponent <Text>().text = title;
     GameObject.Find("RentText").GetComponent <Text>().text     = "£" + rent.ToString();
     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 (5)").GetComponent <Text>().text = "£" + rent5.ToString();
     GameObject.Find("RentText (6)").GetComponent <Text>().text = "£" + mortgage.ToString();
     GameObject.Find("RentText (7)").GetComponent <Text>().text = "£" + houseCost.ToString();
     GameObject.Find("RentText (8)").GetComponent <Text>().text = "£" + hotelCost.ToString();
 }
Пример #3
0
 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);
     }
 }