コード例 #1
0
 // Token: 0x0600011B RID: 283 RVA: 0x000097FC File Offset: 0x000079FC
 public static Texture2D GetPlatformImage(BuildTargetGroup platform)
 {
     if (BuildPlayerWindow2._platformImages == null)
     {
         BuildPlayerWindow2.GetValidPlatforms();
         BuildPlayerWindow2._platformImages = new Texture2D[32];
         foreach (BuildPlatform2 buildPlatform in BuildPlayerWindow2._validplatforms)
         {
             BuildPlayerWindow2._platformImages[(int)buildPlatform.TargetGroup] = (buildPlatform.Image as Texture2D);
         }
     }
     if (platform < 0 && (int)platform >= BuildPlayerWindow2._platformImages.Length)
     {
         return(null);
     }
     return(BuildPlayerWindow2._platformImages[(int)platform]);
 }