public UnityAudioListener(TestableGameObject parent, GameObject obj) : base(parent) { AudioListener listener = obj.GetComponent <AudioListener>(); if (null == listener) { obj.AddComponent <AudioListener>(); } }
public TestableComponent(TestableGameObject obj) { this.enabled = true; this.obj = obj; obj.registerComponent(this); }