Esempio n. 1
0
        public override void Reset()
        {
            base.Reset();

            a = new ConcreteRectVar();
            b = new ConcreteRectVar();
        }
Esempio n. 2
0

        
Esempio n. 3
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();
 }
Esempio n. 4
0
 public override void Reset()
 {
     base.Reset();
     easeType  = TweenNode.EaseType.easeInQuad;
     target    = new ConcreteRectVar();
     rectValue = new ConcreteRectVar();
 }
Esempio n. 5
0
 	public override void Reset () {
         rect = new ConcreteRectVar();
         x = new ConcreteFloatVar();
         y = new ConcreteFloatVar();
         width = new ConcreteFloatVar();
         height = new ConcreteFloatVar();
         normalized = true;
     }
Esempio n. 6
0
 public override void Reset()
 {
     rect   = new ConcreteRectVar();
     x      = new ConcreteFloatVar();
     y      = new ConcreteFloatVar();
     width  = new ConcreteFloatVar();
     height = new ConcreteFloatVar();
 }
Esempio n. 7
0
        public override void Reset () {
            base.Reset();

            position = new ConcreteRectVar(new Rect(0f,0f,1f,1f));
            fingerId = new ConcreteIntVar();
            touchPhase = TouchPhase.Began;
            storeFingerId = new ConcreteIntVar();
            storeTouchPos = new ConcreteVector3Var();
        }
Esempio n. 8
0

        
Esempio n. 9
0
        public override void Reset () {
            rect = new ConcreteRectVar();
            x = new ConcreteFloatVar();
            y = new ConcreteFloatVar();
            width = new ConcreteFloatVar();
            height = new ConcreteFloatVar();

            texture = new ConcreteTextureVar();
            text = new ConcreteStringVar();
            tooltip = new ConcreteStringVar();
            guiStyle = new ConcreteStringVar();
        }
Esempio n. 10
0
        public override void Reset()
        {
            rect   = new ConcreteRectVar();
            x      = new ConcreteFloatVar();
            y      = new ConcreteFloatVar();
            width  = new ConcreteFloatVar();
            height = new ConcreteFloatVar();

            texture  = new ConcreteTextureVar();
            text     = new ConcreteStringVar();
            tooltip  = new ConcreteStringVar();
            guiStyle = new ConcreteStringVar();
        }
Esempio n. 11
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();
 }
Esempio n. 12
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();
 }
Esempio n. 13
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;
 }
Esempio n. 14
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;
 }
Esempio n. 15
0
        /// <summary> 
        /// Draw a rect variable.
        /// <param name="rect">The position to draw the variable.</param>
        /// <param name="rectVar">The rect variable to be drawn.</param>
        /// </summary>
        static void DrawRectVar (Rect rect, RectVar rectVar) {
            rect.yMin += 3f;
            rect.yMax -= 2f;
            rect.xMin += 6f;
            rect.xMax -= 6f;

            DrawName(new Rect (rect.x, rect.y, c_SmallNameWidth, rect.height - (c_TwoLinesHeight - c_OneLineHeight)), rectVar);

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

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

            rect.x += rect.width + 2f;
            #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2
            rect.y += 19f;
            #endif
            rect.height = c_OneLineHeight - 3f;
            rect.width = c_MinusButtonWidth;
            rect.yMin -= 2f;
            rect.yMax += 2f;
            if (GUI.Button(rect, s_Styles.iconToolbarMinus, s_Styles.invisbleButton))
                s_VariableToRemove = rectVar;
        }
Esempio n. 16
0
        public override void Reset () {
            base.Reset();

            rect = new ConcreteRectVar();
            point = new ConcreteVector3Var();
        }
Esempio n. 17
0
        public override void Reset () {
            base.Reset();

            a = new ConcreteRectVar();
            b = new ConcreteRectVar();
        }
Esempio n. 18
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();
 }
Esempio n. 19
0
 public override void Reset () {
     variable = new ConcreteRectVar();
     newValue = new ConcreteRectVar();
 }
Esempio n. 20
0
 public override void Reset () {
     base.Reset();
     easeType = TweenNode.EaseType.easeInQuad;
     target = new ConcreteRectVar();
     rectValue = new ConcreteRectVar();
 }
Esempio n. 21
0
 public override void Reset()
 {
     variable = new ConcreteRectVar();
     newValue = new ConcreteRectVar();
 }