Guest User

Untitled

a guest
Jul 14th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using AC;
  5.  
  6. public class Lugares : MonoBehaviour {
  7.  
  8. public string lugar;
  9. public int perfilId;
  10. public int lenguaje;
  11. public storeVariables store;
  12.  
  13. // Use this for initialization
  14. void Start ()
  15. {
  16. perfilId = Options.GetActiveProfileID();
  17.  
  18. }
  19.  
  20. // Update is called once per frame
  21. void Update ()
  22. {
  23. lenguaje = Options.GetLanguage();
  24. lugar = GlobalVariables.GetStringValue(104, true, lenguaje);
  25. nuevoLugar();
  26.  
  27.  
  28. }
  29.  
  30. public void nuevoLugar()
  31. {
  32. if (perfilId == 0)
  33. {
  34. GlobalVariables.SetStringValue(82, lugar, true);
  35. store.Slot1 = lugar;
  36. }
  37. else if (perfilId == 1)
  38. {
  39. GlobalVariables.SetStringValue(83, lugar, true);
  40. store.Slot2 = lugar;
  41. }
  42. else if (perfilId == 2)
  43. {
  44. GlobalVariables.SetStringValue(84, lugar, true);
  45. store.Slot3 = lugar;
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment