Exemplo n.º 1
0
		public override void Reset () {
			variable = new ConcreteColorVar();
			storeR = new ConcreteFloatVar();
			storeG = new ConcreteFloatVar();
			storeB = new ConcreteFloatVar();
			storeA = new ConcreteFloatVar();
		}
Exemplo n.º 2
0
 public override void Reset()
 {
     base.Reset();
     easeType    = TweenNode.EaseType.easeInQuad;
     targetColor = new ConcreteColorVar();
     color       = new ConcreteColorVar();
 }
Exemplo n.º 3
0
		public override void Reset () {
			fog = new ConcreteBoolVar();
			fogColor = new ConcreteColorVar();
			fogDensity = new ConcreteFloatVar();
			linearFogStart = new ConcreteFloatVar();
			linearFogEnd = new ConcreteFloatVar();
		}
Exemplo n.º 4
0
 public override void Reset () {
     variable = new ConcreteColorVar();
     newR = new ConcreteFloatVar();
     newG = new ConcreteFloatVar();
     newB = new ConcreteFloatVar();
     newA = new ConcreteFloatVar();
 }
Exemplo n.º 5
0
 public override void Reset () {
     color = Color.black;
     time = 2f;
     storeCurrentTime = new ConcreteFloatVar();
     onFinish = new ConcreteFsmEvent();
     guiReady = false;
 }
Exemplo n.º 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;
		}
Exemplo n.º 7
0
		public override void Reset () {
			gameObject = new ConcreteGameObjectVar(this.self);
			center = Vector3.zero;
			radius = 1f;
			color = Color.white * .5f;
			sphereType = SphereType.Wired;
		}
Exemplo n.º 8
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     storeR   = new ConcreteFloatVar();
     storeG   = new ConcreteFloatVar();
     storeB   = new ConcreteFloatVar();
     storeA   = new ConcreteFloatVar();
 }
Exemplo n.º 9
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     center     = Vector3.zero;
     radius     = 1f;
     color      = Color.white * .5f;
     sphereType = SphereType.Wired;
 }
Exemplo n.º 10
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     newR     = new ConcreteFloatVar();
     newG     = new ConcreteFloatVar();
     newB     = new ConcreteFloatVar();
     newA     = new ConcreteFloatVar();
 }
Exemplo n.º 11
0
 public override void Reset()
 {
     color            = Color.black;
     time             = 2f;
     storeCurrentTime = new ConcreteFloatVar();
     onFinish         = new ConcreteFsmEvent();
     guiReady         = false;
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
 public override void Reset()
 {
     fog            = new ConcreteBoolVar();
     fogColor       = new ConcreteColorVar();
     fogDensity     = new ConcreteFloatVar();
     linearFogStart = new ConcreteFloatVar();
     linearFogEnd   = new ConcreteFloatVar();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }
Exemplo n.º 17
0
 public override void Reset () {
     newColor = new ConcreteColorVar();
 }
Exemplo n.º 18
0
		public override void Reset () {
            targetCamera = new ConcreteGameObjectVar();
			newBackgroundColor = new ConcreteColorVar();
		}
Exemplo n.º 19
0
 public override void Reset()
 {
     newTexture = new ConcreteTextureVar();
     newColor   = new ConcreteColorVar();
 }
Exemplo n.º 20
0
 public override void Reset()
 {
     gameObject = this.self;
     newSprite  = new ConcreteObjectVar();
     newColor   = new ConcreteColorVar();
 }
Exemplo n.º 21
0
 public override void Reset () {
     color = Color.black * .5f;
 }
Exemplo n.º 22
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
Exemplo n.º 23
0
 public override void Reset () {
     variable = new ConcreteColorVar();
     newValue = new ConcreteColorVar();
 }
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
Exemplo n.º 25
0
 public override void Reset () {
     newTexture = new ConcreteTextureVar();
     newColor = new ConcreteColorVar();
 }
Exemplo n.º 26
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor   = new ConcreteColorVar();
 }
Exemplo n.º 27
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor = new ConcreteColorVar();
 }
Exemplo n.º 28
0
 public override void Reset()
 {
     variable = new ConcreteColorVar();
     newValue = new ConcreteColorVar();
 }
Exemplo n.º 29
0
 public override void Reset () {
     gameObject = this.self;
     newSprite = new ConcreteObjectVar();
     newColor = new ConcreteColorVar();
 }
Exemplo n.º 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;
 }
Exemplo n.º 31
0
 public override void Reset()
 {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor   = Color.white;
 }
Exemplo n.º 32
0
 public override void Reset()
 {
     targetCamera       = new ConcreteGameObjectVar();
     newBackgroundColor = new ConcreteColorVar();
 }
Exemplo n.º 33
0
 public override void Reset () {
     gameObject = new ConcreteGameObjectVar(this.self);
     newColor = Color.white;
 }
Exemplo n.º 34
0
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newColor     = new ConcreteColorVar();
 }
Exemplo n.º 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;
        }
Exemplo n.º 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();
 }
Exemplo n.º 38
0
 public override void Reset()
 {
     from  = new ConcreteGameObjectVar(this.self);
     to    = new ConcreteGameObjectVar(this.self);
     color = Color.red;
 }
Exemplo n.º 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;
 }