mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-30 20:47:08 +01:00
Interactable Class
This commit is contained in:
18
Assets/Scripts/Interactable.cs
Normal file
18
Assets/Scripts/Interactable.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class Interactable : MonoBehaviour
|
||||
{
|
||||
public enum InteractionType //Interaction Types (Enum hei<65>t enumeration also Aufz<66>hlung)
|
||||
{
|
||||
Click,
|
||||
Hold
|
||||
}
|
||||
|
||||
public InteractionType interactionType;
|
||||
|
||||
public abstract string GetDescription();
|
||||
public abstract void Interact();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user