UnityFlexTimer
An Efficient Unity Timer, easily customizeable and extensible
Install / Use
/learn @StinkySteak/UnityFlexTimerREADME
Simulation Timer
An Lightweight Efficient Timer for Unity. Inspired by Photon Fusion TickTimer
Usage/Examples
Simulation Timer

private FlexTimer _disableTimer;
private void Start()
{
_disableTimer = FlexTimer.CreateFromSeconds(_delay);
}
private void Update()
{
if (_disableTimer.IsExpired())
{
_gameObject.SetActive(false);
_disableTimer = FlexTimer.None;
}
}
Pauseable Simulation Timer

private PauseableFlexTimer _timer;
public PauseableFlexTimer Timer => _timer;
private void Start()
{
_timer = PauseableFlexTimer.CreateFromSeconds(_delay);
}
public void TogglePause()
{
if (!_timer.IsPaused)
{
_timer.Pause();
return;
}
_timer.Resume();
}
private void Update()
{
if (_timer.IsExpired())
{
_gameObject.SetActive(false);
_timer = PauseableFlexTimer.None;
}
}
Related Skills
node-connect
354.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
