WXMC/.svn/pristine/54/54b69075e62b7b290d6dfeb1ca3030836784245f.svn-base
2024-12-04 16:18:46 +08:00

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();
}
}