49 lines
710 B
Plaintext
49 lines
710 B
Plaintext
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Interactable : MonoBehaviour
|
|
{
|
|
public bool Interacting;
|
|
|
|
public virtual void ClearInteractableEvents()
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void OnStartInteract(Touch touch)
|
|
{
|
|
Interacting = true;
|
|
}
|
|
|
|
public virtual void OnEndInteract(Touch touch)
|
|
{
|
|
Interacting = false;
|
|
}
|
|
|
|
public virtual void OnInteract(Touch touch)
|
|
{
|
|
|
|
}
|
|
|
|
protected virtual void VirutalUpdate()
|
|
{
|
|
|
|
}
|
|
|
|
protected virtual void VirtualStart()
|
|
{
|
|
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
VirtualStart();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
VirutalUpdate();
|
|
}
|
|
}
|