Friday, February 22, 2019

Unity 3d Inventory full script by allunityscripts

 Inventory Script

unity 3d  Inventory scripts


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Inventory : MonoBehaviour {

    public GameObject invTab;

// Use this for initialization
void Start () {
        invTab.SetActive(false);
}

// Update is called once per frame
void Update () {

        if (Input.GetKey(KeyCode.Tab))
        {
            invTab.SetActive(true);
        }
        else
        {
            invTab.SetActive(false);
        }
}
}

No comments:

Post a Comment