Skip to content

Systems

Henry Wang edited this page Feb 12, 2024 · 1 revision

Battery System

The battery system is comprised of a switch, battery holder and battery. The battery will only drain if the switch is on, battery has charge and the battery is in the holder.

Listening to events

There are two events to listen to in the battery system, when the battery starts draining and when it stops. These basically simulate when the system has power or not so on and off state.

The listeners are found in SciptableObjects/Events/BatterySystemEvents.cs. To subscribe to any of the listeners please see this page in the Wiki.

Clone this wiki locally