Factorisation des Usable

This commit is contained in:
Antoine H 2020-12-10 11:57:23 +01:00
parent 5b787c7da6
commit 4aa2aef787
7 changed files with 34 additions and 31 deletions

View file

@ -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
}