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