Fixed an issue when you take no items into a game

This commit is contained in:
Julia Butenhoff 2022-02-02 13:10:42 -06:00
parent cc3bd3d706
commit 651bc24abf
3 changed files with 6 additions and 3 deletions

View File

@ -89,7 +89,7 @@ public class SpawnManager : NetworkBehaviour {
// Give a slight delay to allow spawning to complete
IEnumerator ApplyInventoryToClient(ulong clientID, string itemsAsString)
{
yield return new WaitForSecondsRealtime(1f);
yield return new WaitForSecondsRealtime(5f);
ClientRpcParams clientRpcParams = new ClientRpcParams
{

View File

@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using MLAPI;
@ -68,6 +69,8 @@ public class PlayerInventory : NetworkBehaviour
//Equips All items in list at start of next scene
public void UpdateEquips(List<string> items, Dictionary<string, Item> allItems){
if (items.Count <= 0) { return; }
foreach(string itemName in items){
AddItem(allItems[itemName]);
}

View File

@ -21,10 +21,10 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c7b151b180b6501273035202c1327d1e33136e7a923e7ee2e26
flags: 0
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c6f02131b172b282d347e38271427fb
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
value: 22424703114646680e0b0227036c6f02131b172b282d347e38271427fb
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650