Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            mbTarget = target as MonoBehaviourPun;

            base.OnInspectorGUI();

            if (mbTarget.photonView == null)
            {
                EditorGUILayout.HelpBox("Unable to find a PhotonView on this GameObject or on any parent GameObject.", MessageType.Warning);
            }
        }
Exemplo n.º 2
0
 private void OnEnable()
 {
     mbTarget = target as MonoBehaviourPun;
 }