Question: At the class level define a public static float to track the remaining power ( such as what was done for the number of medicine
At the class level define a public static float to track the remaining power such as what was done for the number of medicine boxes dropped set it at to begin with and then recompute this in the power consumption method you create.Create a method in the DroneDataDisplay Class to show the percentage of remaining power text format is fine. This can be where the calculation is performed too.Add a text UI in the Drone Data Panel called Battery Power.Dont forget to drag and drop the Battery Power text UI in the correct slot in Drone Data Display script component in the Inspector Panel.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
