Factorisation des Usable
This commit is contained in:
parent
5b787c7da6
commit
4aa2aef787
7 changed files with 34 additions and 31 deletions
|
@ -3,11 +3,10 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
//Represent object that can be grabed.
|
||||
public interface IGrabable
|
||||
public interface IGrabable: IUsable
|
||||
{
|
||||
//Unity inspector doesn't handle well interface...
|
||||
int size {get; set;} //Size (1 or 2 hands) of the object
|
||||
void use();
|
||||
void take();
|
||||
void drop(Vector2 position); //Drop to position
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue