Ajout Interface Grabable + Start Mug Implementation
This commit is contained in:
parent
594de91135
commit
71d6586baf
5 changed files with 81 additions and 0 deletions
12
Assets/Scripts/IGrabable.cs
Normal file
12
Assets/Scripts/IGrabable.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public interface IGrabable
|
||||
{
|
||||
//Unity inspector doesn't handle interface...
|
||||
// int size {get; set;} //Size (1 or 2 hands) of the object
|
||||
void use();
|
||||
void take();
|
||||
void drop(Transform position); //Drop to position
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue