void Start() { fullItemList = new List <GameObject>(); ObjectHolder = transform.GetChild(0); uiManagerScript = uiManager.GetComponent <UIManagerScript>(); CharacterChangeScript = CharacterChange.GetComponent <CharacterChange>(); string roomID = PlayerPrefs.GetString("myRoomID"); items = new Dictionary <string, List <GameObject> >() { { "Furniture", new List <GameObject>() { } }, { "Electronics", new List <GameObject>() { } }, { "Plants", new List <GameObject>() { } }, { "Extra", new List <GameObject>() { } } }; ItemButtonBackdrops = new Dictionary <string, GameObject>() { { "Furniture", FurnitureBackdrop }, { "Electronics", ElectronicsBackdrop }, { "Plants", PlantsBackdrop }, { "Extra", ExtraBackdrop } }; if (PlayerPrefs.GetString("currentRoomID") == roomID) { StartCoroutine(LoadPurchasedItems(roomID)); } }
void Start() { myRoomID = PlayerPrefs.GetString("myRoomID"); uiManagerScript = uiManager.GetComponent <UIManagerScript>(); // int indexPlaced = 0;//PlayerPrefs.GetInt("CharacterSelected"); // target = transformList[indexPlaced]; // // string itemString = PlayerPrefs.GetString("CurrentItem"); // // saveSystem.LoadSpace(myRoomID, modifiedTerrain, HandleNewObj); }
void Start() { username = PlayerPrefs.GetString("username"); Debug.Log("USSERNAME : " + username); roomID = PlayerPrefs.GetString("myRoomID"); managerScript = GameManager.GetComponent <GameManagerScript>(); StartCoroutine(GetGroups("https://circles-parellano.herokuapp.com/api/get-world-groups", GroupButtonPrefab, GroupCallback, FriendListContent)); uiManagerScript = UIManager.GetComponent <UIManagerScript>(); itemLoader = itemLoaderGO.GetComponent <ItemLoader>(); }
void Start() { ObjectHolder = transform.GetChild(0); uiManagerScript = uiManager.GetComponent <UIManagerScript>(); CharacterChangeScript = CharacterChange.GetComponent <CharacterChange>(); string roomID = PlayerPrefs.GetString("myRoomID"); if (PlayerPrefs.GetString("currentRoomID") == roomID) { StartCoroutine(LoadPurchasedItems(roomID)); } }
void Start() { TrashCan = Instantiate(TrashCan); TrashCan.SetActive(false); UIManager = UIManGameObject.GetComponent <UIManagerScript>(); }