Objective: Learning how to create and remove lives using GetComponent in Unity. When you create a variable in a script, it is solely in that script. You can create the same variable in another script and set it to a different int, string, bool, or float, and it won’t conflict…