Unity Observers

Pressing space triggers an event that changes colors of the cubes based on their individual script.
ColorCubeRed script is on three cubes, as is ColorCubeGreen and ColorCubeBlue.




Unity Developer

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

Recommended from Medium

What Makes a Good User Story in Agile?

WiFi Hacking Week

Java Database Connectivity (JDBC)

Milky Way

Spacing Links with the CSS Adjacent (+) Selector

Want to learn Git and GitHub?

Flutter vs React Native: Comparison

Learn to Code: 13 Tips that Could Save You Years of Effort

How to Motivate Software Developers?

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
Hal Brooks

Hal Brooks

Unity Developer

More from Medium

Modular Health System in Unity!

WebGL Optimization in Unity

Unity Action: delegated events

Mastering Unity Scripting | Summary — Chapter 3: Singletons, Statics, GameObjects, and the World