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

29 lines
632 B
C#
Raw Normal View History

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);
}
}
}