Esempio n. 1
0
        public UnityAudioListener(TestableGameObject parent, GameObject obj) : base(parent)
        {
            AudioListener listener = obj.GetComponent <AudioListener>();

            if (null == listener)
            {
                obj.AddComponent <AudioListener>();
            }
        }
Esempio n. 2
0
 public TestableComponent(TestableGameObject obj)
 {
     this.enabled = true;
     this.obj     = obj;
     obj.registerComponent(this);
 }