Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Rect Position
- {
- get
- {
- int posX = Screen.width - Texture.Background.width;
- // mirror to the left side on the tracking station
- if (this.onTrackingStation)
- {
- posX = 241;
- }
- return new Rect(posX,
- Screen.height - Texture.Background.height,
- Texture.Background.width,
- Texture.Background.height);
- }
- }
- private Rect PositionSatellite
- {
- get
- {
- var width = 350;
- var height = 350;
- var posX = Screen.width - width;
- // mirror to the left side on the tracking station
- if (this.onTrackingStation)
- {
- posX = 241;
- }
- return new Rect(posX,
- Screen.height - height - Position.height,
- width,
- height);
- }
- }
- private Rect PositionAntenna
- {
- get
- {
- var positionSatellite = PositionSatellite;
- var width = 350;
- var height = 350;
- var posX = PositionSatellite.x - width;
- // mirror to the left side on the tracking station
- if (this.onTrackingStation)
- {
- posX = PositionSatellite.x + PositionSatellite.width;
- }
- return new Rect(posX,
- Screen.height - height,
- width,
- height);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement