13 lines
354 B
C#
13 lines
354 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
//Represent object that can be grabed.
|
|
public interface IGrabable
|
|
{
|
|
//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
|
|
}
|