17 lines
310 B
C#
17 lines
310 B
C#
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; }
|
|
}
|
|
|
|
|
|
|
|
|
|
} |