Ejemplo n.º 1
0
        protected override void OnCopyDataTo(object targetObj, ICloneOperation operation)
        {
            base.OnCopyDataTo(targetObj, operation);
            TextRenderer target = targetObj as TextRenderer;

            target.blockAlign = this.blockAlign;
            target.colorTint  = this.colorTint;

            operation.HandleValue(ref this.iconMat, ref target.iconMat);
            operation.HandleObject(this.text, ref target.text);
            operation.HandleObject(this.customMat, ref target.customMat);
        }
Ejemplo n.º 2
0
            void ICloneExplicit.CopyDataTo(object targetObj, ICloneOperation operation)
            {
                Source target = targetObj as Source;

                target.looped        = this.looped;
                target.paused        = this.paused;
                target.volume        = this.volume;
                target.pitch         = this.pitch;
                target.offset        = this.offset;
                target.hasBeenPlayed = this.hasBeenPlayed;

                operation.HandleValue(ref this.sound, ref target.sound);
            }
Ejemplo n.º 3
0
        protected override void OnCopyDataTo(object targetObj, ICloneOperation operation)
        {
            base.OnCopyDataTo(targetObj, operation);
            SpriteRenderer target = targetObj as SpriteRenderer;

            target.rect      = this.rect;
            target.colorTint = this.colorTint;
            target.rectMode  = this.rectMode;
            target.offset    = this.offset;

            operation.HandleValue(ref this.sharedMat, ref target.sharedMat);
            operation.HandleObject(this.customMat, ref target.customMat);
        }
Ejemplo n.º 4
0
		protected override void OnCopyDataTo(object targetObj, ICloneOperation operation)
		{
			base.OnCopyDataTo(targetObj, operation);
			SpriteRenderer target = targetObj as SpriteRenderer;
			
			target.rect			= this.rect;
			target.colorTint	= this.colorTint;
			target.rectMode		= this.rectMode;
			target.offset		= this.offset;

			operation.HandleValue(ref this.sharedMat, ref target.sharedMat);
			operation.HandleObject(this.customMat, ref target.customMat);
		}
Ejemplo n.º 5
0
            void ICloneExplicit.CopyDataTo(object targetObj, ICloneOperation operation)
            {
                Source target = targetObj as Source;

                target.looped			= this.looped;
                target.paused			= this.paused;
                target.volume			= this.volume;
                target.pitch			= this.pitch;
                target.offset			= this.offset;
                target.hasBeenPlayed	= this.hasBeenPlayed;

                operation.HandleValue(ref this.sound, ref target.sound);
            }
Ejemplo n.º 6
0
		protected override void OnCopyDataTo(object targetObj, ICloneOperation operation)
		{
			base.OnCopyDataTo(targetObj, operation);
			TextRenderer target = targetObj as TextRenderer;

			target.blockAlign	= this.blockAlign;
			target.colorTint	= this.colorTint;

			operation.HandleValue(ref this.iconMat, ref target.iconMat);
			operation.HandleObject(this.text, ref target.text);
			operation.HandleObject(this.customMat, ref target.customMat);
		}