Advertisement
LittleAngel

Untitled

May 4th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var storeIt : int;
  2. public static var Instance : MainMenuGameStyle;
  3. var GameSelectPanelManager : UIPanelManager;
  4.  
  5.  
  6. function Awake()
  7. {
  8. Instance = this;
  9. }
  10.  
  11. function Start()
  12. {
  13. GameSelectPanelManager = GameSelectPanelManager.GetComponent("UIPanelManager");
  14. if(!PlayerPrefs.HasKey("SetGameStyle"))
  15. {
  16. //Debug.Log("set int");
  17. PlayerPrefs.SetInt("SetGameStyle", 0);
  18. }
  19. storeIt = PlayerPrefs.GetInt("SetGameStyle");
  20. yield;
  21. GameSelectPanelManager.BringIn(storeIt);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement