How to Create a Wave System in Unity (Part 2 — Wave UI Text)

Showing the current wave at the start of each round

--

Objective: create a UI Text element to show the current wave

First I create a UI text element in the scene and change the position, size and font color to fit with the general UI of the game.

Then we have to select the element and create an animation to flicker the text. This is with aesthetic purpose.

In the UI Manager I declared a Text variable to get the reference to the wave text.

Next in the UI manager I create a coroutine to enable the wave text for 4 seconds and another public function to start the coroutine.

And in the Spawn Manager Script we call the function to show the text each time we start spawning.

That’s it!!! We can show the current wave through the UI.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Rusben Guzman
Rusben Guzman

Written by Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

No responses yet

Write a response