Unity Game Dev : create a Player Bounds with “if statement”! (Part II)

The else statement run the code when the condition inside IF is false
> (greater)
< (minor)
= = (equal)
> = (greater or equal)
< = (minor or equal)
Here the code runs because 5 > 2 AND 5 < 10
Here the code runs again because 2 IS NOT > 5 BUT 10 > 2

--

--

--

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!

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

Recommended from Medium

Simple guide to install TERRAFORM on Linux

A brief overview “Python and Anaconda” — for starters

Monty Python, Vignesh Kathirkamar, Transport Pythonified, Anaconda, Python, Python and Anaconda

How to manage subscription Billing using Subill

Changing the look of your Jupyter workspace!

No More Boring Retros

Of Microservices & Containers

UML 2.0 Overview of the major diagrams

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
Matteo Lo Piccolo

Matteo Lo Piccolo

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!

More from Medium

Damage VFX using Animated Sprites in Unity

Adding Player Audio Effects

Creating An Advanced 2D Player Controller Without Any Unity Components! (Part 3)

Cross-platform Input Controller