public override void Reset()
 {
     player       = new PlayerReferenceProperty();
     result       = null;
     successEvent = null;
     errorEvent   = null;
 }
Пример #2
0
 public override void Reset()
 {
     player         = new PlayerReferenceProperty();
     result         = null;
     willProceed    = null;
     willNotProceed = null;
 }
Пример #3
0
 public override void Reset()
 {
     player              = new PlayerReferenceProperty();
     customPropertyKey   = "My Property";
     customPropertyValue = null;
     successEvent        = null;
     failureEvent        = null;
 }
        public override void Reset()
        {
            player = null;

            eventTarget        = new FsmEventTarget();
            eventTarget.target = FsmEventTarget.EventTarget.BroadcastAll;
            remoteEvent        = null;
            stringData         = null;
        }
        public override object OnGUI(GUIContent label, object obj, bool isSceneObject, params object[] attributes)
        {
            PlayerReferenceProperty _class = obj as PlayerReferenceProperty;

            if (_class == null)
            {
                EditorGUILayout.HelpBox("PlayerReferenceProperty = null", MessageType.Error);
                return(null);
            }

            EditorGUI.indentLevel++;

            EditField("reference", _class.reference, attributes);

            EditorGUI.indentLevel++;


            PlayerReferenceProperty.PlayerReferences _ref = _class.reference;

            if (_ref == PlayerReferenceProperty.PlayerReferences.ByUserId)
            {
                EditField("userId", _class.userId, attributes);
            }

            if (_ref == PlayerReferenceProperty.PlayerReferences.ByActorNumber)
            {
                EditField("actorNumber", _class.actorNumber, attributes);
            }

            if (_ref == PlayerReferenceProperty.PlayerReferences.ByNickName)
            {
                EditField("nickname", _class.nickname, attributes);
            }

            if (_ref == PlayerReferenceProperty.PlayerReferences.ByOwnedObject)
            {
                EditField("gameObject", _class.gameObject, attributes);
            }

            if (_ref == PlayerReferenceProperty.PlayerReferences.ByRoomNumber)
            {
                EditField("roomNumber", _class.roomNumber, attributes);
            }


            EditorGUI.indentLevel--;


            EditField("playerNotFound", _class.playerNotFound, attributes);

            EditorGUI.indentLevel--;

            return(obj);
        }
 public override void Reset()
 {
     player       = new PlayerReferenceProperty();
     successEvent = null;
     failureEvent = null;
 }