Firstborn/Assets/Kevin Iglesias/Villager Animations Pack/Example Scene/Scripts/CookingScript.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

29 lines
632 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace KevinIglesias {
public class CookingScript : MonoBehaviour {
public GameObject salt;
public GameObject saltInHand;
public GameObject tube;
public GameObject tubeInHand;
public void GetSalt(bool dropSalt)
{
salt.SetActive(dropSalt);
saltInHand.SetActive(!dropSalt);
}
public void GetTube(bool dropTube)
{
tube.SetActive(dropTube);
tubeInHand.SetActive(!dropTube);
}
}
}