public override void OnInspectorGUI()
        {
            PhotonChatUserProxy _target = (PhotonChatUserProxy)this.target;

            DrawDefaultInspector();


            if (Application.isPlaying)
            {
                string _userdId = string.IsNullOrEmpty(_target.UserId)?"n/a":_target.UserId;

                EditorGUILayout.LabelField("UserId", _userdId);
            }
        }
Esempio n. 2
0
        public override void OnEnter()
        {
            var go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go == null)
            {
                LogError("Missing GameObject target");
                return;
            }

            _proxy = go.GetComponent <PhotonChatUserProxy>();
            if (_proxy == null)
            {
                LogError("Missing PhotonChatUserProxy component target");
                return;
            }

            _proxy.UserId = userId.Value;

            Finish();
        }