18 lines
329 B
C#
18 lines
329 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
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; }
|
|
}
|
|
|
|
|
|
|
|
|
|
} |