18 lines
377 B
C#
18 lines
377 B
C#
using UnityEngine;
|
|
using System;
|
|
|
|
public abstract class BaseInputBehavior : MonoBehaviour
|
|
{
|
|
protected DateTime lastInput;
|
|
public int InputDelay = 300;
|
|
|
|
protected bool IsSpawned
|
|
{
|
|
get {
|
|
//return false;
|
|
return (DateTime.Now - lastInput).Milliseconds < InputDelay;
|
|
return (DateTime.Now - lastInput).Milliseconds < InputDelay;
|
|
}
|
|
}
|
|
|
|
} |