예제 #1
0
        public IImageComponent SetImage(ImageComponent source)
        {
            if (source.GetImageSource() != null)
            {
                this.SetImage(source.GetImageSource().sprite);
            }
            if (source.GetRawImageSource() != null)
            {
                this.SetImage(source.GetRawImageSource().texture);
            }

            return(this);
        }
예제 #2
0
			public void SetImage(ImageComponent source) {
				
				if (source.GetImageSource() != null) this.SetImage(source.GetImageSource().sprite);
				if (source.GetRawImageSource() != null) this.SetImage(source.GetRawImageSource().texture);
				
			}
			public IImageComponent SetImage(ImageComponent source) {
				
				if (source.GetImageSource() != null) this.SetImage(source.GetImageSource().sprite);
				if (source.GetRawImageSource() != null) this.SetImage(source.GetRawImageSource().texture);
				
				return this;
				
			}