Пример #1
0
		public override void Reset () {
			variable = new ConcreteColorVar();
			storeR = new ConcreteFloatVar();
			storeG = new ConcreteFloatVar();
			storeB = new ConcreteFloatVar();
			storeA = new ConcreteFloatVar();
		}
Пример #2
0
 public override void Reset()
 {
     base.Reset();
     easeType    = TweenNode.EaseType.easeInQuad;
     targetColor = new ConcreteColorVar();
     color       = new ConcreteColorVar();
 }
Пример #3
0
		public override void Reset () {
			fog = new ConcreteBoolVar();
			fogColor = new ConcreteColorVar();
			fogDensity = new ConcreteFloatVar();
			linearFogStart = new ConcreteFloatVar();
			linearFogEnd = new ConcreteFloatVar();
		}
Пример #4
0
 public override void Reset () {
     variable = new ConcreteColorVar();
     newR = new ConcreteFloatVar();
     newG = new ConcreteFloatVar();
     newB = new ConcreteFloatVar();
     newA = new ConcreteFloatVar();
 }
Пример #5
0
 public override void Reset () {
     color = Color.black;
     time = 2f;
     storeCurrentTime = new ConcreteFloatVar();
     onFinish = new ConcreteFsmEvent();
     guiReady = false;
 }
Пример #6
0
		public override void Reset () {
			gameObject = new ConcreteGameObjectVar(this.self);
			center = Vector3.zero;
			size = new Vector3(1f, 1f, 1f);
			color = Color.white * .5f;
			cubeType = CubeType.Wired;
		}
Пример #7
0
		public override void Reset () {
			gameObject = new ConcreteGameObjectVar(this.self);
			center = Vector3.zero;
			radius = 1f;
			color = Color.white * .5f;
			sphereType = SphereType.Wired;
		}
Пример #8
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     storeR   = new ConcreteFloatVar();
     storeG   = new ConcreteFloatVar();
     storeB   = new ConcreteFloatVar();
     storeA   = new ConcreteFloatVar();
 }
Пример #9
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     center     = Vector3.zero;
     radius     = 1f;
     color      = Color.white * .5f;
     sphereType = SphereType.Wired;
 }
Пример #10
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     newR     = new ConcreteFloatVar();
     newG     = new ConcreteFloatVar();
     newB     = new ConcreteFloatVar();
     newA     = new ConcreteFloatVar();
 }
Пример #11
0
 public override void Reset()
 {
     color            = Color.black;
     time             = 2f;
     storeCurrentTime = new ConcreteFloatVar();
     onFinish         = new ConcreteFsmEvent();
     guiReady         = false;
 }
Пример #12
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     center     = Vector3.zero;
     size       = new Vector3(1f, 1f, 1f);
     color      = Color.white * .5f;
     cubeType   = CubeType.Wired;
 }
Пример #13
0
 public override void Reset()
 {
     fog            = new ConcreteBoolVar();
     fogColor       = new ConcreteColorVar();
     fogDensity     = new ConcreteFloatVar();
     linearFogStart = new ConcreteFloatVar();
     linearFogEnd   = new ConcreteFloatVar();
 }
Пример #14
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();
 }
Пример #15
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();
 }
Пример #16
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;
 }
Пример #17
0
 public override void Reset () {
     newColor = new ConcreteColorVar();
 }
Пример #18
0
		public override void Reset () {
            targetCamera = new ConcreteGameObjectVar();
			newBackgroundColor = new ConcreteColorVar();
		}
Пример #19
0
 public override void Reset()
 {
     newTexture = new ConcreteTextureVar();
     newColor   = new ConcreteColorVar();
 }
 public override void Reset()
 {
     gameObject = this.self;
     newSprite  = new ConcreteObjectVar();
     newColor   = new ConcreteColorVar();
 }
Пример #21
0
 public override void Reset () {
     color = Color.black * .5f;
 }
Пример #22
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
Пример #23
0
 public override void Reset () {
     variable = new ConcreteColorVar();
     newValue = new ConcreteColorVar();
 }
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
Пример #25
0
 public override void Reset () {
     newTexture = new ConcreteTextureVar();
     newColor = new ConcreteColorVar();
 }
Пример #26
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor   = new ConcreteColorVar();
 }
Пример #27
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor = new ConcreteColorVar();
 }
Пример #28
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     newValue = new ConcreteColorVar();
 }
Пример #29
0
 public override void Reset () {
     gameObject = this.self;
     newSprite = new ConcreteObjectVar();
     newColor = new ConcreteColorVar();
 }
Пример #30
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;
 }
Пример #31
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor   = Color.white;
 }
Пример #32
0
 public override void Reset()
 {
     targetCamera       = new ConcreteGameObjectVar();
     newBackgroundColor = new ConcreteColorVar();
 }
Пример #33
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor = Color.white;
 }
Пример #34
0
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newColor     = new ConcreteColorVar();
 }
Пример #35
0
        /// <summary> 
        /// Draw a color variable.
        /// <param name="rect">The position to draw the variable.</param>
        /// <param name="colorVar">The color variable to be drawn.</param>
        /// </summary>
        static void DrawColorVar (Rect rect, ColorVar colorVar) {
            rect.yMin += 3f;
            rect.yMax -= 2f;
            rect.xMin += 6f;
            rect.xMax -= 6f;
            DrawName(new Rect (rect.x, rect.y, c_NameWidth, rect.height), colorVar);

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

                // Update variable value
                colorVar.Value = newValue;
                // Set blackboard dirty flag
                if (colorVar.blackboard != null) EditorUtility.SetDirty(colorVar.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 = colorVar;
        }
Пример #36
0
		public override void Reset () {
			from = new ConcreteGameObjectVar(this.self);
			to = new ConcreteGameObjectVar(this.self);
			color = Color.red;
		}
 public override void Reset()
 {
     newColor = new ConcreteColorVar();
 }
Пример #38
0
 public override void Reset()
 {
     from  = new ConcreteGameObjectVar(this.self);
     to    = new ConcreteGameObjectVar(this.self);
     color = Color.red;
 }
Пример #39
0
 public override void Reset () {
     base.Reset();
     easeType = TweenNode.EaseType.easeInQuad;
     targetColor = new ConcreteColorVar();
     color = new ConcreteColorVar();
 }
 public override void Reset()
 {
     color = Color.black * .5f;
 }