using UnityEngine; using System; public abstract class BaseInputBehavior : MonoBehaviour { protected DateTime lastInput; public int InputDelay = 100; protected bool IsSpawned { get { return lastInput == null || (DateTime.Now - lastInput).Milliseconds < InputDelay; } } }