Unity 2018 Cookbook(Third Edition)
上QQ阅读APP看书,第一时间看更新

How it works...

You created a C# script class, SpectrumCubes. You created a GameObject with an AudioSource component, and an instance of your scripted class. All the work is done by the methods in the SpectrumCues C# script class, so each of these is explained in the following sections.