Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System;
- [Serializable]
- public class inventorySlot
- {
- public produce produceOfSlot;
- public bool filledSlot;
- public void wipeSlot()
- {
- produceOfSlot = new produce();
- filledSlot = false;
- }
- }
- public class playerInventory : MonoBehaviour {
- public inventorySlot[] allProduceHeld;
- public inventorySlot currentProduceHeld;
- public int currentProduceHeld_Index;
- // Use this for initialization
- void Awake () {
- allProduceHeld = new inventorySlot[9];
- //for(int i = 0; i < allProduceHeld.Length; i++)
- //{
- //allProduceHeld[i].wipeSlot();
- //}
- }
- // Update is called once per frame
- void Update () {
- currentProduceHeld = allProduceHeld[currentProduceHeld_Index];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement