GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alvivar/TeaTime: TeaTime is a fast and straightforward queue for timed callbacks, specifically designed to address common coroutine patterns in Unity games.

BranchesTags
Open more actions menu

Latest commit

 

History

400 Commits
400 Commits

Folders and files

NameName
Last commit message
Last commit date
Examples
Examples
 
 
Tools
Tools
 
 
.gitignore
.gitignore
 
 
API.md
API.md
 
 
CHANGES.md
CHANGES.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TODO.md
TODO.md
 
 
TeaTime.cs
TeaTime.cs
 
 

Repository files navigation

TeaTime

TeaTime is a fast & simple queue for timed callbacks, focused on solving common coroutines patterns in Unity games.

// Inside MonoBehaviours
TeaTime queue = this.tt().Add(1, () =>
{
    // The queue autoplays by default
    Debug.Log($"One second later! {Time.time}");
})
.Loop(3, (TeaHandler loop) =>
{
    // This callback is repeated per frame during the loop duration
    transform.position =
        Vector3.Lerp(
            transform.position,
            transform.position + Random.insideUnitSphere,
            loop.deltaTime // deltaTime sincronized with the loop duration
        );
})
.Add(() =>
{
    Debug.Log($"The loop is done! {Time.time}");
})
.Repeat(); // Repeats forever!

// And more!
queue.Reverse();
queue.Yoyo();
queue.Immutable();

Check out the examples and the API.

About

TeaTime is a fast and straightforward queue for timed callbacks, specifically designed to address common coroutine patterns in Unity games.

Resources

Readme
MIT license
Activity

Stars

51 stars

Watchers

7 watching

Forks

13 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.