Exemplo n.º 1
0
 protected void OnVerticesDirty()
 {
     if (this.sprite == null)
     {
         this.sprite = EmptySprite.Get();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 void Init()
 {
     FixTexCoordsInCanvas();
     this.m_OnDirtyVertsCallback += OnVerticesDirty;
     this.preserveAspect          = false;
     this.material = null;
     if (this.sprite == null)
     {
         this.sprite = EmptySprite.Get();
     }
 }