concept other device in category c#
appears as: other devices

This is an excerpt from Manning's book Unity in Action: Multiplatform game development in C# with Unity 5.
Although levels in games mostly consist of static walls and scenery, they also usually incorporate a lot of functional devices as well. I’m talking about objects that the player can interact with and operate—things like lights that turn on or a fan that starts turning. The specific devices can vary a lot and are mostly limited only by your imagination, but they almost all use the same sort of code to have the player activate the device. We’ll implement a couple of examples in this chapter, and then you should be able to adapt this same code to work with all sorts of other devices.