Exemplo n.º 1
0
 public override void Reset()
 {
     boolVariable  = new ConcreteBoolVar();
     trueValue     = (Material)null;
     falseValue    = (Material)null;
     storeMaterial = new ConcreteMaterialVar();
 }
Exemplo n.º 2
0
 public override void Reset () {
     objectToRotate = new ConcreteGameObjectVar(this.self);
     objectToLookAt = new ConcreteGameObjectVar(this.self);
     worldUp = new ConcreteVector3Var();
     speed = 120f;
     onlyRotateInYAxis = new ConcreteBoolVar();
 }
Exemplo n.º 3
0
 public override void Reset()
 {
     eventToSend    = new ConcreteFsmEvent();
     delay          = new ConcreteFloatVar();
     storeEventUsed = new ConcreteBoolVar();
     storeDelayTime = new ConcreteFloatVar();
 }
Exemplo n.º 4
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = 1f;
     falseValue   = 0f;
     storeFloat   = new ConcreteFloatVar();
 }
Exemplo n.º 5
0
 public override void Reset()
 {
     boolVariable    = new ConcreteBoolVar();
     trueValue       = Quaternion.Euler(0, 0, 180);
     falseValue      = Quaternion.identity;
     storeQuaternion = new ConcreteQuaternionVar();
 }
Exemplo n.º 6
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = (UnityEngine.Object)null;
     falseValue   = (UnityEngine.Object)null;
     storeObject  = new ConcreteObjectVar();
 }
Exemplo n.º 7
0
 public override void Reset () {
     gameObject = this.self;
     
     #if UNITY_4 || UNITY_4_1 || UNITY_4_3 || UNITY_4_5 || UNITY_4_6
     stopUpdates = false;
     #endif
 }
Exemplo n.º 8
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = "True";
     falseValue   = "False";
     storeInt     = new ConcreteStringVar();
 }
Exemplo n.º 9
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = 1;
     falseValue   = 0;
     storeInt     = new ConcreteIntVar();
 }
Exemplo n.º 10
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = new Vector3(1, 1, 1);
     falseValue   = Vector3.zero;
     storeVector3 = new ConcreteVector3Var();
 }
Exemplo n.º 11
0
 public override void Reset()
 {
     objectToRotate = new ConcreteGameObjectVar(this.self);
     objectToLookAt = new ConcreteGameObjectVar(this.self);
     worldUp        = new ConcreteVector3Var();
     ignoreYAxis    = new ConcreteBoolVar();
 }
Exemplo n.º 12
0
 public override void Reset()
 {
     variable = new ConcreteVector3Var();
     x        = new ConcreteBoolVar();
     y        = new ConcreteBoolVar();
     z        = new ConcreteBoolVar();
 }
Exemplo n.º 13
0
 public override void Reset()
 {
     boolVariable    = new ConcreteBoolVar();
     trueValue       = new ConcreteGameObjectVar(this.self);
     falseValue      = new ConcreteGameObjectVar(this.self);
     storeGameObject = new ConcreteGameObjectVar();
 }
Exemplo n.º 14
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = (Texture)null;
     falseValue   = (Texture)null;
     storeTexture = new ConcreteTextureVar();
 }
Exemplo n.º 15
0
		public override void Reset () {
			fog = new ConcreteBoolVar();
			fogColor = new ConcreteColorVar();
			fogDensity = new ConcreteFloatVar();
			linearFogStart = new ConcreteFloatVar();
			linearFogEnd = new ConcreteFloatVar();
		}
Exemplo n.º 16
0
 public override void Reset()
 {
     boolVariable = new ConcreteBoolVar();
     trueValue    = new Rect(1, 1, 1, 1);
     falseValue   = new Rect(0, 0, 0, 0);
     storeRect    = new ConcreteRectVar();
 }
Exemplo n.º 17
0
 public override void Reset()
 {
     other          = new ConcreteGameObjectVar();
     eventToSend    = new ConcreteFsmEvent();
     stateName      = new ConcreteStringVar();
     storeEventUsed = new ConcreteBoolVar();
 }
Exemplo n.º 18
0
 public override void Reset () {
     objectToMove = new ConcreteGameObjectVar(this.self);
     targetPosition = new ConcreteGameObjectVar(this.self);
     speed = 1f;
     ignoreXAxis = new ConcreteBoolVar();
     ignoreYAxis = new ConcreteBoolVar();
     ignoreZAxis = new ConcreteBoolVar();
 }
Exemplo n.º 19
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newDirection = new ConcreteVector3Var();
     upDirection = new ConcreteVector3Var();
     minSqrMagnitude = 0.1f;
     angularVelocity = 6f;
     ignoreYAxis = true;
 }
Exemplo n.º 20
0
 public override void Reset()
 {
     objectToRotate    = new ConcreteGameObjectVar(this.self);
     objectToLookAt    = new ConcreteGameObjectVar(this.self);
     worldUp           = new ConcreteVector3Var();
     speed             = 120f;
     onlyRotateInYAxis = new ConcreteBoolVar();
 }
Exemplo n.º 21
0
 public override void Reset()
 {
     fog            = new ConcreteBoolVar();
     fogColor       = new ConcreteColorVar();
     fogDensity     = new ConcreteFloatVar();
     linearFogStart = new ConcreteFloatVar();
     linearFogEnd   = new ConcreteFloatVar();
 }
Exemplo n.º 22
0
 public override void Reset()
 {
     gameObject      = new ConcreteGameObjectVar(this.self);
     newDirection    = new ConcreteVector3Var();
     upDirection     = new ConcreteVector3Var();
     minSqrMagnitude = 0.1f;
     ignoreYAxis     = true;
 }
Exemplo n.º 23
0
        public override void Reset()
        {
            gameObject = this.self;

            #if UNITY_4 || UNITY_4_1 || UNITY_4_3 || UNITY_4_5 || UNITY_4_6
            stopUpdates = false;
            #endif
        }
Exemplo n.º 24
0
 	public override void Reset () {
         rect = new ConcreteRectVar();
         x = new ConcreteFloatVar();
         y = new ConcreteFloatVar();
         width = new ConcreteFloatVar();
         height = new ConcreteFloatVar();
         normalized = true;
     }
Exemplo n.º 25
0
 public override void Reset()
 {
     objectToMove   = new ConcreteGameObjectVar(this.self);
     targetPosition = new ConcreteGameObjectVar(this.self);
     speed          = 1f;
     ignoreXAxis    = new ConcreteBoolVar();
     ignoreYAxis    = new ConcreteBoolVar();
     ignoreZAxis    = new ConcreteBoolVar();
 }
Exemplo n.º 26
0
 	public override void Reset () {
         gameObject = new ConcreteGameObjectVar(this.self);
         input = new ConcreteFloatVar();
         moveForce = new ConcreteFloatVar();
         maxSpeed = new ConcreteFloatVar();
         jump = new ConcreteBoolVar();
         jumpForce = 500f;
         flip = true;
     }
Exemplo n.º 27
0
 public override void Reset()
 {
     rect       = new ConcreteRectVar();
     x          = new ConcreteFloatVar();
     y          = new ConcreteFloatVar();
     width      = new ConcreteFloatVar();
     height     = new ConcreteFloatVar();
     normalized = true;
 }
Exemplo n.º 28
0
 public override void Reset()
 {
     base.Reset();
     easeType        = TweenNode.EaseType.easeInQuad;
     desiredPosition = new ConcreteGameObjectVar(this.self);
     ignoreXAxis     = new ConcreteBoolVar();
     ignoreYAxis     = new ConcreteBoolVar();
     ignoreZAxis     = new ConcreteBoolVar();
 }
Exemplo n.º 29
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     space = Space.World;
     direction = new ConcreteVector3Var();
     speed = 1f;
     useGravity = true;
     jump = new ConcreteBoolVar();
     jumpSpeed = 8f;
 }
Exemplo n.º 30
0
        public override void Reset () {
            storeScrollPosition = new ConcreteVector3Var();
            alwayShowHorizontal = new ConcreteBoolVar();
            alwayShowVertical = new ConcreteBoolVar();

            horizontalStyle = new ConcreteStringVar();
            verticalStyle = new ConcreteStringVar();
            backgroundStyle = new ConcreteStringVar();
        }
Exemplo n.º 31
0
 public override void Reset () {
     origin = new ConcreteGameObjectVar(this.self);
     direction = new ConcreteGameObjectVar(this.self);
     distance = new ConcreteFloatVar();
     layers = 0;
     storeResult = new ConcreteBoolVar();
     storeGameObject = new ConcreteGameObjectVar();
     storeDistance = new ConcreteFloatVar();
     storePoint = new ConcreteVector3Var();
 }
Exemplo n.º 32
0
 public override void Reset () {
     width = new ConcreteFloatVar();
     height = new ConcreteFloatVar();
     minWidth = new ConcreteFloatVar();
     maxWidth = new ConcreteFloatVar();
     minHeight = new ConcreteFloatVar();
     maxHeight = new ConcreteFloatVar();
     expandWidth = new ConcreteBoolVar();
     expandHeight = new ConcreteBoolVar();
 }
Exemplo n.º 33
0
        public override void Reset()
        {
            storeScrollPosition = new ConcreteVector3Var();
            alwayShowHorizontal = new ConcreteBoolVar();
            alwayShowVertical   = new ConcreteBoolVar();

            horizontalStyle = new ConcreteStringVar();
            verticalStyle   = new ConcreteStringVar();
            backgroundStyle = new ConcreteStringVar();
        }
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     input      = new ConcreteFloatVar();
     moveForce  = new ConcreteFloatVar();
     maxSpeed   = new ConcreteFloatVar();
     jump       = new ConcreteBoolVar();
     jumpForce  = 500f;
     flip       = true;
 }
Exemplo n.º 35
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     space      = Space.World;
     direction  = new ConcreteVector3Var();
     speed      = 1f;
     useGravity = true;
     jump       = new ConcreteBoolVar();
     jumpSpeed  = 8f;
 }
Exemplo n.º 36
0
 public override void Reset()
 {
     width        = new ConcreteFloatVar();
     height       = new ConcreteFloatVar();
     minWidth     = new ConcreteFloatVar();
     maxWidth     = new ConcreteFloatVar();
     minHeight    = new ConcreteFloatVar();
     maxHeight    = new ConcreteFloatVar();
     expandWidth  = new ConcreteBoolVar();
     expandHeight = new ConcreteBoolVar();
 }
Exemplo n.º 37
0
        public override void Reset()
        {
            target = new ConcreteVector3Var();

            XAllowP = new ConcreteBoolVar();
            XAllowN = new ConcreteBoolVar();
            YAllowP = new ConcreteBoolVar();
            YAllowN = new ConcreteBoolVar();
            ZAllowP = new ConcreteBoolVar();
            ZAllowN = new ConcreteBoolVar();
        }
Exemplo n.º 38
0
 public override void Reset()
 {
     origin          = new ConcreteGameObjectVar(this.self);
     direction       = new ConcreteGameObjectVar(this.self);
     distance        = new ConcreteFloatVar();
     layers          = 0;
     storeResult     = new ConcreteBoolVar();
     storeGameObject = new ConcreteGameObjectVar();
     storeDistance   = new ConcreteFloatVar();
     storePoint      = new ConcreteVector3Var();
 }
Exemplo n.º 39
0
 public override void Reset () {
     base.Reset();
     SingleValue = new ConcreteFloatVar();
     intValue = new ConcreteIntVar();
     BooleanValue = new ConcreteBoolVar();
     StringValue = new ConcreteStringVar();
     Vector3Value = new ConcreteVector3Var();
     RectValue = new ConcreteRectVar();
     ColorValue = new ConcreteColorVar();
     GameObjectValue = new ConcreteGameObjectVar(this.self);
     MaterialValue = new ConcreteMaterialVar();
     TextureValue = new ConcreteTextureVar();
     ObjectValue = new ConcreteObjectVar();
 }
Exemplo n.º 40
0
 public override void Reset()
 {
     objectToRotate = new ConcreteGameObjectVar(this.self);
     ignoreX        = false;
     ignoreY        = false;
     invertX        = new ConcreteBoolVar();
     invertY        = new ConcreteBoolVar();
     sensitiveX     = 1f;
     sensitiveY     = 1f;
     minX           = -360f;
     maxX           = 360f;
     minY           = -360f;
     maxY           = 360f;
 }
Exemplo n.º 41
0
 public override void Reset()
 {
     base.Reset();
     rect       = new ConcreteRectVar();
     x          = new ConcreteFloatVar();
     y          = new ConcreteFloatVar();
     width      = new ConcreteFloatVar();
     height     = new ConcreteFloatVar();
     normalized = true;
     texture    = new ConcreteTextureVar();
     text       = new ConcreteStringVar();
     tooltip    = new ConcreteStringVar();
     guiStyle   = new ConcreteStringVar();
 }
Exemplo n.º 42
0
 public override void Reset()
 {
     base.Reset();
     SingleValue     = new ConcreteFloatVar();
     intValue        = new ConcreteIntVar();
     BooleanValue    = new ConcreteBoolVar();
     StringValue     = new ConcreteStringVar();
     Vector3Value    = new ConcreteVector3Var();
     RectValue       = new ConcreteRectVar();
     ColorValue      = new ConcreteColorVar();
     GameObjectValue = new ConcreteGameObjectVar(this.self);
     MaterialValue   = new ConcreteMaterialVar();
     TextureValue    = new ConcreteTextureVar();
     ObjectValue     = new ConcreteObjectVar();
 }
Exemplo n.º 43
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     methodName = new ConcreteStringVar();
     options = SendMessageOptions.RequireReceiver;
     floatParameter = new ConcreteFloatVar();
     intParameter = new ConcreteIntVar();
     boolParameter = new ConcreteBoolVar();
     stringParameter = new ConcreteStringVar();
     vector3Parameter = new ConcreteVector3Var();
     rectParameter = new ConcreteRectVar();
     colorParameter = new ConcreteColorVar();
     quaternionParameter = new ConcreteQuaternionVar();
     gameObjectParameter = new ConcreteGameObjectVar(this.self);
     textureParameter = new ConcreteTextureVar();
     materialParameter = new ConcreteMaterialVar();
     fsmEventParameter = new ConcreteFsmEvent();
     objectParameter = new ConcreteObjectVar();
     messageType = MessageType.SendMessage;
 }
Exemplo n.º 44
0
 public override void Reset () {
     boolVariable = new ConcreteBoolVar();
     trueValue = new Vector3(1,1,1);
     falseValue = Vector3.zero;
     storeVector3 = new ConcreteVector3Var();
 }
Exemplo n.º 45
0
 public override void Reset () {
     gameObject = this.self;
     target = this.self;
     resetPath = new ConcreteBoolVar();
 }
Exemplo n.º 46
0
 	public override void Reset () {
         gameObject = new ConcreteGameObjectVar(this.self);
         newValue = new ConcreteBoolVar();
     }
Exemplo n.º 47
0
 public override void Reset () {
     base.Reset();
     rect = new ConcreteRectVar();
     x = new ConcreteFloatVar();
     y = new ConcreteFloatVar();
     width = new ConcreteFloatVar();
     height = new ConcreteFloatVar();
     normalized = true;
     texture = new ConcreteTextureVar();
     text = new ConcreteStringVar();
     tooltip = new ConcreteStringVar();
     guiStyle = new ConcreteStringVar();
 }
Exemplo n.º 48
0
 public override void Reset () {
     boolVariable = new ConcreteBoolVar();
     trueValue = new Rect(1,1,1,1);
     falseValue = new Rect(0,0,0,0);
     storeRect = new ConcreteRectVar();
 }
Exemplo n.º 49
0
 public override void Reset () {
     boolVariable = new ConcreteBoolVar();
     trueValue = "True";
     falseValue = "False";
     storeInt = new ConcreteStringVar();
 }
Exemplo n.º 50
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newHasChanged = new ConcreteBoolVar();
 }
Exemplo n.º 51
0
		public override void Reset () {
			objectToRotate = new ConcreteGameObjectVar(this.self);
			ignoreX = false;
			ignoreY = false;
			invertX = new ConcreteBoolVar();
			invertY = new ConcreteBoolVar();
			sensitiveX = 1f;
			sensitiveY = 1f;
			minX = -360f;
			maxX = 360f;
			minY = -360f;
			maxY = 360f;
		}
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     storeApplyRootMotion = new ConcreteBoolVar();
 }
Exemplo n.º 53
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     eventToSend = new ConcreteFsmEvent();
     storeEventUsed = new ConcreteBoolVar();
 }
Exemplo n.º 54
0
 public override void Reset () {
     eventToSend = new ConcreteFsmEvent();
     storeEventUsed = new ConcreteBoolVar();
 }
Exemplo n.º 55
0
        /// <summary> 
        /// Draw a bool variable.
        /// <param name="rect">The position to draw the variable.</param>
        /// <param name="boolVar">The bool variable to be drawn.</param>
        /// </summary>
        static void DrawBoolVar (Rect rect, BoolVar boolVar) {
            rect.yMin += 3f;
            rect.yMax -= 2f;
            rect.xMin += 6f;
            rect.xMax -= 6f;

            DrawName(new Rect (rect.x, rect.y, c_LargeNameWidth, rect.height), boolVar);

            rect.xMin += c_LargeNameWidth + c_Space;
            rect.xMax -= c_MinusButtonWidth + c_RightPadding;
            EditorGUI.BeginChangeCheck();
            var newValue = EditorGUI.Toggle (rect, GUIContent.none, boolVar.Value);
            if (EditorGUI.EndChangeCheck() && newValue != boolVar.Value) {
                // Register undo
                if (boolVar.blackboard != null) { 
                    #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2
                    Undo.RegisterUndo(boolVar.blackboard, "Variable Value");
                    #else
                    Undo.RecordObject(boolVar.blackboard, "Variable Value");
                    #endif
                }

                // Update variable value
                boolVar.Value = newValue;
                // Set blackboard dirty flag
                if (boolVar.blackboard != null) EditorUtility.SetDirty(boolVar.blackboard);
            }

            rect.x += rect.width + 2f;
            rect.width = c_MinusButtonWidth;
            rect.yMin -= 2f;
            rect.yMax += 2f;
            if (GUI.Button(rect, s_Styles.iconToolbarMinus, s_Styles.invisbleButton))
                s_VariableToRemove = boolVar;
        }
Exemplo n.º 56
0
 public override void Reset () {
     newValue = new ConcreteBoolVar();
 }
Exemplo n.º 57
0
 public override void Reset () {
     other = new ConcreteGameObjectVar();
     eventToSend = new ConcreteFsmEvent();
     stateName = new ConcreteStringVar();
     storeEventUsed = new ConcreteBoolVar();
 }
Exemplo n.º 58
0
 public override void Reset () {
     boolVariable = new ConcreteBoolVar();
     trueValue = (UnityEngine.Object)null;
     falseValue = (UnityEngine.Object)null;
     storeObject = new ConcreteObjectVar();
 }
Exemplo n.º 59
0
 public override void Reset () {
     boolVariable = new ConcreteBoolVar();
     trueValue = 1f;
     falseValue = 0f;
     storeFloat = new ConcreteFloatVar();
 }
Exemplo n.º 60
0
 public override void Reset () {
     condition = new ConcreteBoolVar();
 }