예제 #1
0
 void ChangeScale()
 {
     Spr_Buliding.width  = (int)((float)Spr_Buliding.width * 1.2f);
     Spr_Buliding.height = (int)((float)Spr_Buliding.height * 1.2f);
     Transform[] tran = stars.GetComponentsInChildren <Transform>();
     for (int i = 0; i < tran.Length; i++)
     {
         UISprite _sprite = tran[i].GetComponent <UISprite>();
         if (_sprite == null)
         {
             continue;
         }
         _sprite.width  = (int)((float)_sprite.width * 1.2f);
         _sprite.height = (int)((float)_sprite.height * 1.2f);
     }
 }