Advertisement
Guest User

Untitled

a guest
Apr 5th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. private Rect PositionButton
  2. {
  3. get
  4. {
  5. if (!KnowledgeBase.Instance) return new Rect(0, 0, 0, 0);
  6. //TODO: Fix
  7. //var position = KnowledgeBase.Instance.KnowledgeContainer.transform.position;
  8. //var position2 = UIManager.instance.rayCamera.WorldToScreenPoint(position);
  9. var rect = new Rect(400,
  10. Screen.height - Texture.Satellite.height,
  11. Texture.Satellite.width,
  12. Texture.Satellite.height);
  13. return rect;
  14. }
  15. }
  16.  
  17. private Rect PositionFrame
  18. {
  19. get
  20. {
  21. var rect = new Rect(0, 0, 250, 500);
  22. rect.y = Screen.height - rect.height;
  23. rect.x = PositionButton.x + 5 + PositionButton.width;
  24. return rect;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement