ProjetPatate/Assets/Scripts/IGrabable.cs

13 lines
347 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//Represent object that can be grabed.
2020-12-10 11:57:23 +01:00
public interface IGrabable: IUsable
{
//Unity inspector doesn't handle well interface...
int size {get; set;} //Size (1 or 2 hands) of the object
void take();
2020-12-04 11:15:18 +01:00
void drop(Vector2 position); //Drop to position
}