12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonUnity3D.UGUI
- {
- public class TintSprite : DisplayNode
- {
- private readonly ImageGraphics mImage;
- public TintSprite(string name = "") : base(name)
- {
- this.mImage = mGameObject.AddComponent<ImageGraphics>();
- this.mImage.color = UnityEngine.Color.white;
- this.Enable = false;
- this.EnableChildren = false;
- }
- public ImageGraphics Graphics { get { return mImage; } }
- public UnityEngine.Color Color
- {
- get { return mImage.color; }
- set { mImage.color = value; }
- }
- }
- }
|