Start working Mug.cs

This commit is contained in:
Antoine H 2020-12-04 11:15:18 +01:00
parent 71d6586baf
commit 70024c7b6a
3 changed files with 37 additions and 10 deletions

View file

@ -12,11 +12,12 @@ public class Mug : MonoBehaviour, IGrabable
}
public void take()
{
gameObject.SetActive(false);
}
public void drop(Transform position) //Drop to position
public void drop(Vector2 position) //Drop to position
{
gameObject.SetActive(true);
gameObject.transform.position = position;
}
// Start is called before the first frame update