Firstborn/Assets/Kevin Iglesias/Villager Animations Pack/Example Scene/Scripts/LiftScript.cs

20 lines
390 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace KevinIglesias
{
public class LiftScript : MonoBehaviour {
public GameObject item;
public GameObject itemInHand;
public void GetItem(bool dropItem)
{
item.SetActive(dropItem);
itemInHand.SetActive(!dropItem);
}
}
}