Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a method in the UAVController Class to implement the power consumption. Hint Steps: At the class level define a public static float to track

Create a method in the UAVController Class to implement the power consumption.
Hint
Steps:
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 4500 to begin with and then recompute this in the power consumption method you create.
Fill in the required code in the Power Consumption method. This can be done in as little as one line.
Create a method in the DroneDataDisplay Class to show the remaining power text format is fine.
This will be a similar implementation as when we created the method for tracking the boxes dropped.
Add a text UI in the Drone Data Panel called Battery Power.
In the DroneDataDisplay Class:
Add a public power, display text variable.
Create method in the DroneDataDisplay Class to display power.
Call this method from GameDataDisplay Class Update() method.
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.
Deliverables:
Display drone data: altitude, speed, range.
Tracking number of medicine boxes dropped - Uses increment.
Show a method to compute power usage based on throttle input and display remaining power.
Submit the following files showing all material covered in the videos and your additions: GameDataDisplay.cs, DroneDataDisplay.cs. Include your name in the top of the script use the following format //Student name.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions