Esempio 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);
            }
        }
Esempio n. 2
0
 private void OnEnable()
 {
     mbTarget = target as MonoBehaviourPun;
 }