Day 8 | Cooldown System in Unity

Setup

Cooldown System Implementation

Pseudocode

If the cooldown time for making the cube has elapsed
Make the cube
Reset the cooldown time.

Code Logic

cooldownComplete = Time.time + cooldownTime;

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Shadowed Box-Design

.NET Lambda Authorizer With Custom Data

Inside Story on Developing the Ultimate SDN-Enabled Hybrid Cloud Object Storage Environment

From Hero to Zero… and Back

Thoughts about Single Responsibility Principle and Scalability

[18+] Agbára kọ ná fi ńgbé okó dìde

Flexible data tables with CSS Grid

Basic Guide to become Full Stack Developer from Scratch

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ted Lim

Ted Lim

More from Medium

Platformer: Player Animation V — Idle Jump

Camera Shake in Unity

Using Decals in Unity

Galaxy Shooter 2D — Super Laser