Ejemplo n.º 1
0
 void ReloadTexture()
 {
     if (!string.IsNullOrEmpty(TextureName))
     {
         MYUITools.GetAssetFunc(TextureName, OnLoadTexture, 0);
     }
 }
Ejemplo n.º 2
0
 public void SetMask(string mask)
 {
     needSetMaskName = mask;
     if (this.atlas != null)
     {
         if (!string.IsNullOrEmpty(mask))
         {
             if (mNormalAtlas == null)
             {
                 mNormalAtlas = this.atlas;
             }
             this.atlas = MYUITools.GetMaskAtlas(mNormalAtlas, mask);
         }
         else
         {
             this.atlas = mNormalAtlas;
         }
     }
 }
Ejemplo n.º 3
0
 public void SetAtlas(string name, string spriteName)
 {
     this.spriteName = spriteName;
     MYUITools.GetAssetFunc(name, OnLoadAtlas, 1);
 }
 public void OnLoadSmilyFont(string name, UnityEngine.Object obj)
 {
     mSmilyFont = (obj as GameObject).GetComponent <UIFont>();
     MYUITools.ResetFontWhenLoadInGame(obj as GameObject);
 }