1234567891011121314151617181920212223242526272829303132 |
- // --------------------------------------------------------------------------------------------------------------------
- // <copyright file="AppVersionProperty.cs" company="Exit Games GmbH">
- // Part of: Pun Cockpit
- // </copyright>
- // <author>developer@exitgames.com</author>
- // --------------------------------------------------------------------------------------------------------------------
- using UnityEngine;
- using UnityEngine.UI;
- namespace Photon.Pun.Demo.Cockpit
- {
- /// <summary>
- /// PhotonNetwork.AppVersion UI property.
- /// </summary>
- public class AppVersionProperty : MonoBehaviour
- {
- public Text Text;
- string _cache;
- void Update()
- {
- if (PhotonNetwork.AppVersion != _cache)
- {
- _cache = PhotonNetwork.AppVersion;
- Text.text = _cache;
- }
- }
- }
- }
|