Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using AC;
- public class Lugares : MonoBehaviour {
- public string lugar;
- public int perfilId;
- public int lenguaje;
- public storeVariables store;
- // Use this for initialization
- void Start ()
- {
- perfilId = Options.GetActiveProfileID();
- }
- // Update is called once per frame
- void Update ()
- {
- lenguaje = Options.GetLanguage();
- lugar = GlobalVariables.GetStringValue(104, true, lenguaje);
- nuevoLugar();
- }
- public void nuevoLugar()
- {
- if (perfilId == 0)
- {
- GlobalVariables.SetStringValue(82, lugar, true);
- store.Slot1 = lugar;
- }
- else if (perfilId == 1)
- {
- GlobalVariables.SetStringValue(83, lugar, true);
- store.Slot2 = lugar;
- }
- else if (perfilId == 2)
- {
- GlobalVariables.SetStringValue(84, lugar, true);
- store.Slot3 = lugar;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment