Example #1
0
    void RPC_ShowPropertyCardPanel(string title, int id, int price, int mortgage)
    {
        UtilityPanel.SetActive(true);

        GameObject.Find("PropertyName").GetComponent <Text>().text = title;
        GameObject.Find("RentText (6)").GetComponent <Text>().text = "£" + mortgage.ToString();
    }
Example #2
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;
        }
    }
Example #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);
     }
 }