Exemplo n.º 1
0
 void Start()
 {
     if (tex == null)
     {
         tex = gameObject.GetComponent <UIHoleCubeTexture>();
     }
 }
Exemplo n.º 2
0
 public void SetSize(int width, int height)
 {
     if (tex == null)
     {
         tex        = gameObject.GetComponent <UIHoleCubeTexture>();
         tex.width  = width;
         tex.height = height;
     }
 }
Exemplo n.º 3
0
 protected override void OnEnable()
 {
     base.OnEnable();
     mTex = target as UIHoleCubeTexture;
 }