mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
remove unneeded variables
This commit is contained in:
parent
9c0bcd747b
commit
c661e13b88
1 changed files with 2 additions and 7 deletions
|
@ -74,10 +74,6 @@ namespace SanAndreasUnity.Behaviours
|
|||
public Texture2D BlackPixel { get; private set; }
|
||||
public Texture2D SeaPixel { get; private set; }
|
||||
|
||||
private TextureDictionary huds;
|
||||
|
||||
private Sprite mapSprite;
|
||||
|
||||
|
||||
|
||||
public void Load()
|
||||
|
@ -122,7 +118,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
MapTexture.Apply(false, true);
|
||||
|
||||
huds = TextureDictionary.Load("hud");
|
||||
var huds = TextureDictionary.Load("hud");
|
||||
NorthBlip = huds.GetDiffuse("radar_north").Texture;
|
||||
PlayerBlip = huds.GetDiffuse("radar_centre").Texture;
|
||||
WaypointTexture = huds.GetDiffuse("radar_waypoint").Texture;
|
||||
|
@ -131,8 +127,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
northImage.sprite = Sprite.Create(NorthBlip, new Rect(0, 0, NorthBlip.width, NorthBlip.height), new Vector2(NorthBlip.width, NorthBlip.height) / 2);
|
||||
playerImage.texture = this.PlayerBlip;
|
||||
mapSprite = Sprite.Create(MapTexture, new Rect(0, 0, MapTexture.width, MapTexture.height), new Vector2(MapTexture.width, MapTexture.height) / 2);
|
||||
mapImage.sprite = mapSprite;
|
||||
mapImage.sprite = Sprite.Create(MapTexture, new Rect(0, 0, MapTexture.width, MapTexture.height), new Vector2(MapTexture.width, MapTexture.height) / 2);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue