Esempio n. 1
0
        public void BeforeTest()
        {
            var source = new GameObject().AddComponent <AudioSource>();

            _emitter = source.gameObject.AddComponent <MockNoiseEmitterComponent>();

            _hornHoldable = source.gameObject.AddComponent <TestHornHoldable>();
            _hornHoldable.PrimaryHornSound   = new AudioClip();
            _hornHoldable.SecondaryHornSound = new AudioClip();

            _hornHoldable.TestStart();

            _hornHoldable.PrimaryHornNoiseData = new NoiseData {
                NoiseRadius = 200.0f
            };
            _hornHoldable.SecondaryHornNoiseData = new NoiseData {
                NoiseRadius = 300.0f
            };
        }
Esempio n. 2
0
 public void AfterTest()
 {
     _hornHoldable = null;
 }