Exemplo n.º 1
0
 public AAds(string text, string link, string link_image, Image sprite, Text label, MonoBehaviour m, TAds tads)
 {
     TADS       = tads;
     M          = m;
     TEXT       = text;
     LINK       = link;
     LINK_IMAGE = link_image;
     SPRITE     = sprite;
     LABEL      = label;
 }
Exemplo n.º 2
0
 public void LoadImage(MonoBehaviour m, TAds tads, Text label, Image sprite, bool is_saved)
 {
     LABEL = label;
     M     = m;
     TADS  = tads;
     //Debug.Log(LINK_IMAGE);
     if (!is_saved)
     {
         M.StartCoroutine(LoadImage(TAds.SUPER_LINK + LINK_IMAGE));
     }
     else
     {
         LABEL.text = TEXT;
     }
     TADS.LINK = LINK;
 }
Exemplo n.º 3
0
 public void ReUseImage(MonoBehaviour m, TAds tads, Text label, Image sprite)
 {
     SPRITE    = sprite;
     LABEL     = label;
     M         = m;
     TADS      = tads;
     TADS.LINK = LINK;
     if (SPRITEMP == null)
     {
         LABEL.text = TEXT;
     }
     else
     {
         if (Random.Range(0, 2) == 0)
         {
             SPRITE.sprite = SPRITEMP;
             LABEL.text    = "";
         }
         else
         {
             LABEL.text = TEXT;
         }
     }
 }