Start working Mug.cs
This commit is contained in:
parent
71d6586baf
commit
70024c7b6a
3 changed files with 37 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue