Item Selector

This commit is contained in:
brausjonas
2023-03-04 01:14:26 +01:00
parent fd0a36ccb7
commit 194a84ad01
9 changed files with 1063 additions and 8 deletions
+2 -2
View File
@@ -91,11 +91,11 @@ public abstract class Player : MonoBehaviour
}
}
public void ActivateItem(int index, Item.Type type)
public void ActivateItem(int index)
{
activeItem = items[index].type;
uiItems[index].gameObject.SetActive(false);
items[index] = null;
activeItem = type;
}
public void OnTriggerEnter(Collider c)