ProjetPatate/Assets/Scripts/Mug.cs

35 lines
619 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Mug : MonoBehaviour, IGrabable
{
public int size = 1; //Size (1 or 2 hands) of the object
public void use()
{
}
public void take()
{
2020-12-04 11:15:18 +01:00
gameObject.SetActive(false);
}
2020-12-04 11:15:18 +01:00
public void drop(Vector2 position) //Drop to position
{
2020-12-04 11:15:18 +01:00
gameObject.SetActive(true);
gameObject.transform.position = position;
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}