void OnPhotonCustomRoomPropertiesChanged()
 {
     if (PhotonNetwork.player.ID == 1)
     {
         ChipCalculator chipCalculator = GameObject.Find("ChipCalc").GetComponent <ChipCalculator>();
         this.GetComponent <Text>().text = chipCalculator.opponentscreen;
     }
     else
     {
         ChipCalculator chipCalculator = GameObject.Find("ChipCalc").GetComponent <ChipCalculator>();
         this.GetComponent <Text>().text = chipCalculator.screen;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     chipCalculator = GetComponent <ChipCalculator>();
 }