public static void loadTextures() { for (int i = 0; i < tileCount; i++) { tiles [i] = TextureDictionary.Load("radar" + ((i < 10) ? "0" : "") + i); } huds = TextureDictionary.Load("hud"); northBlip = huds.GetDiffuse("radar_north").Texture; playerBlip = huds.GetDiffuse("radar_centre").Texture; }
public static void loadTextures() { for (int i = 0; i < tileCount; i++) { string name = "radar" + ((i < 10) ? "0" : "") + i; var texDict = TextureDictionary.Load(name); Texture2D tex = texDict.GetDiffuse(name).Texture; tex.filterMode = FilterMode.Point; tiles[i] = texDict; } huds = TextureDictionary.Load("hud"); northBlip = huds.GetDiffuse("radar_north").Texture; playerBlip = huds.GetDiffuse("radar_centre").Texture; //Debug.Log(new Vector2(playerBlip.width, playerBlip.height)); }