In this tutorial you will learn how to integrate stamina functionality (and a corresponding UI element) with the sprint functionality I created in another video. In this tutorial we use Unity's image component to create a dynamic image that can have it's fill amount modified.
I started this project with a player controller that can be created by following this tutorial - [ Ссылка ]
The sprinting functionality for the player controller can be integrated by follow this tutorial - [ Ссылка ]
This tutorial is aimed at those who are new to developing games with Unity and programming in the C# language. Alongside audio narration, this video also includes a range of text information tips that are intended to provide extra context and help you to understand how you can use C# with the Unity editor.
00:00 Introduction
Creating a stamina bar on the canvas 00:40
Extending the GameHUD script 08:43
Adding stamina functionality to the PlayerController script 10:33
End result 19:54
Ещё видео!