I summarize the things I learn in a quick and concise way and share them to help others.
In this video, I covered the topic of 'How to Make a Unity | Power Bar.' The power bar mechanic is a great way to keep the excitement of the player at the highest level in Casual - Hyper Casual games. As per the concept of my channel, I am demonstrating the most useful and quick way to make a power bar.
All my videos: • Unity 3D | C# Dersleri
Hyper Casual: • Playlist
Only Mechanics: • Playlist
Animation: • Playlist
The contents of this video and the operators or functions used are listed below:
1- "?" operator: Used to shorten a conditional expression. Returns one value if the condition is true and another value if it's false.
2- Mathf.Clamp function: Used to keep a value within a certain range. If the value is outside the range, it returns the boundary value.
3- If-else statements: Used to perform different operations depending on a condition. If the condition is true, the "if" block is executed, otherwise the "else" block is executed.
4- localEulerAngles function: Returns the local angles of an object as a Vector3.
Input.GetMouseButtonDawn function: Checks whether the mouse button is pressed or not and returns true or false accordingly.
#unity #unity3d #unitydersleri #unitytips #oyungeliştirme